diff options
author | Sebastian Manciulea <manciuleas@yahoo.com> | 2008-04-14 11:13:01 -0400 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2008-04-17 08:29:48 -0400 |
commit | 706047a79725b585cf272fdefc234b31b6545c72 (patch) | |
tree | 24d3055bfc3d87c052f6cd1efd100834a23b82fe /fs/udf | |
parent | 47c9358a015199ed37c66235a2238271a7c8041f (diff) |
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: Sebastian Manciulea <manciuleas@yahoo.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/udf')
-rw-r--r-- | fs/udf/super.c | 7 | ||||
-rw-r--r-- | fs/udf/udfdecl.h | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/fs/udf/super.c b/fs/udf/super.c index 8f02b30c22ef..6823733c0121 100644 --- a/fs/udf/super.c +++ b/fs/udf/super.c | |||
@@ -608,7 +608,8 @@ static int udf_vrs(struct super_block *sb, int silent) | |||
608 | sector += (sbi->s_session << sb->s_blocksize_bits); | 608 | sector += (sbi->s_session << sb->s_blocksize_bits); |
609 | 609 | ||
610 | udf_debug("Starting at sector %u (%ld byte sectors)\n", | 610 | udf_debug("Starting at sector %u (%ld byte sectors)\n", |
611 | (sector >> sb->s_blocksize_bits), sb->s_blocksize); | 611 | (unsigned int)(sector >> sb->s_blocksize_bits), |
612 | sb->s_blocksize); | ||
612 | /* Process the sequence (if applicable) */ | 613 | /* Process the sequence (if applicable) */ |
613 | for (; !nsr02 && !nsr03; sector += sectorsize) { | 614 | for (; !nsr02 && !nsr03; sector += sectorsize) { |
614 | /* Read a block */ | 615 | /* Read a block */ |
@@ -1117,8 +1118,8 @@ static int udf_fill_partdesc_info(struct super_block *sb, | |||
1117 | if (p->accessType == cpu_to_le32(PD_ACCESS_TYPE_OVERWRITABLE)) | 1118 | if (p->accessType == cpu_to_le32(PD_ACCESS_TYPE_OVERWRITABLE)) |
1118 | map->s_partition_flags |= UDF_PART_FLAG_OVERWRITABLE; | 1119 | map->s_partition_flags |= UDF_PART_FLAG_OVERWRITABLE; |
1119 | 1120 | ||
1120 | udf_debug("Partition (%d:%d type %x) starts at physical %d, " | 1121 | udf_debug("Partition (%d type %x) starts at physical %d, " |
1121 | "block length %d\n", partitionNumber, p_index, | 1122 | "block length %d\n", p_index, |
1122 | map->s_partition_type, map->s_partition_root, | 1123 | map->s_partition_type, map->s_partition_root, |
1123 | map->s_partition_len); | 1124 | map->s_partition_len); |
1124 | 1125 | ||
diff --git a/fs/udf/udfdecl.h b/fs/udf/udfdecl.h index 30f664ab0cd9..61897d312a2e 100644 --- a/fs/udf/udfdecl.h +++ b/fs/udf/udfdecl.h | |||
@@ -16,7 +16,7 @@ | |||
16 | #define UDF_PREALLOCATE | 16 | #define UDF_PREALLOCATE |
17 | #define UDF_DEFAULT_PREALLOC_BLOCKS 8 | 17 | #define UDF_DEFAULT_PREALLOC_BLOCKS 8 |
18 | 18 | ||
19 | #undef UDFFS_DEBUG | 19 | #define UDFFS_DEBUG |
20 | 20 | ||
21 | #ifdef UDFFS_DEBUG | 21 | #ifdef UDFFS_DEBUG |
22 | #define udf_debug(f, a...) \ | 22 | #define udf_debug(f, a...) \ |