summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2009-04-22 15:07:00 -0400
committerTheodore Ts'o <tytso@mit.edu>2009-04-22 15:07:00 -0400
commit46d6f84ebe3cfdd703f40a56f9904c04d10cc138 (patch)
tree23991f437351ee248b6addd7636fd3099ed23646 /lib
parent935a123f3b9156e18d1397a05e5b5f1a5e021f22 (diff)
downloade2fsprogs-46d6f84ebe3cfdd703f40a56f9904c04d10cc138.tar.gz
libext2fs: Fix format string type warnings in alloc_stats.c
Fix gcc warnings caused by wrong types passed com_err() in ext2fs_inode_alloc_stats2 and in ext2fs_block_alloc_stats(). Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'lib')
-rw-r--r--lib/ext2fs/alloc_stats.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/ext2fs/alloc_stats.c b/lib/ext2fs/alloc_stats.c
index d523b432..b2f086ea 100644
--- a/lib/ext2fs/alloc_stats.c
+++ b/lib/ext2fs/alloc_stats.c
@@ -23,7 +23,7 @@ void ext2fs_inode_alloc_stats2(ext2_filsys fs, ext2_ino_t ino,
#ifndef OMIT_COM_ERR
if (ino > fs->super->s_inodes_count) {
com_err("ext2fs_inode_alloc_stats2", 0,
- "Illegal inode number: %lu", ino);
+ "Illegal inode number: %lu", (unsigned long) ino);
return;
}
#endif
@@ -67,8 +67,8 @@ void ext2fs_block_alloc_stats(ext2_filsys fs, blk_t blk, int inuse)
#ifndef OMIT_COM_ERR
if (blk >= fs->super->s_blocks_count) {
- com_err("ext2fs_block_alloc_stats2", 0,
- "Illegal block number: %lu", blk);
+ com_err("ext2fs_block_alloc_stats", 0,
+ "Illegal block number: %lu", (unsigned long) blk);
return;
}
#endif