Commit 706047a7 authored by Sebastian Manciulea's avatar Sebastian Manciulea Committed by Jan Kara

udf: Fix compilation warnings when UDF debug is on

Fix two compilation warnings (and actual bugs in message formatting)
when UDF debugging is turned on.
Signed-off-by: default avatarSebastian Manciulea <manciuleas@yahoo.com>
Signed-off-by: default avatarJan Kara <jack@suse.cz>
parent 47c9358a
...@@ -608,7 +608,8 @@ static int udf_vrs(struct super_block *sb, int silent) ...@@ -608,7 +608,8 @@ static int udf_vrs(struct super_block *sb, int silent)
sector += (sbi->s_session << sb->s_blocksize_bits); sector += (sbi->s_session << sb->s_blocksize_bits);
udf_debug("Starting at sector %u (%ld byte sectors)\n", udf_debug("Starting at sector %u (%ld byte sectors)\n",
(sector >> sb->s_blocksize_bits), sb->s_blocksize); (unsigned int)(sector >> sb->s_blocksize_bits),
sb->s_blocksize);
/* Process the sequence (if applicable) */ /* Process the sequence (if applicable) */
for (; !nsr02 && !nsr03; sector += sectorsize) { for (; !nsr02 && !nsr03; sector += sectorsize) {
/* Read a block */ /* Read a block */
...@@ -1117,8 +1118,8 @@ static int udf_fill_partdesc_info(struct super_block *sb, ...@@ -1117,8 +1118,8 @@ static int udf_fill_partdesc_info(struct super_block *sb,
if (p->accessType == cpu_to_le32(PD_ACCESS_TYPE_OVERWRITABLE)) if (p->accessType == cpu_to_le32(PD_ACCESS_TYPE_OVERWRITABLE))
map->s_partition_flags |= UDF_PART_FLAG_OVERWRITABLE; map->s_partition_flags |= UDF_PART_FLAG_OVERWRITABLE;
udf_debug("Partition (%d:%d type %x) starts at physical %d, " udf_debug("Partition (%d type %x) starts at physical %d, "
"block length %d\n", partitionNumber, p_index, "block length %d\n", p_index,
map->s_partition_type, map->s_partition_root, map->s_partition_type, map->s_partition_root,
map->s_partition_len); map->s_partition_len);
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
#define UDF_PREALLOCATE #define UDF_PREALLOCATE
#define UDF_DEFAULT_PREALLOC_BLOCKS 8 #define UDF_DEFAULT_PREALLOC_BLOCKS 8
#undef UDFFS_DEBUG #define UDFFS_DEBUG
#ifdef UDFFS_DEBUG #ifdef UDFFS_DEBUG
#define udf_debug(f, a...) \ #define udf_debug(f, a...) \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment