diff options
author | Eric Sandeen <esandeen@redhat.com> | 2006-09-12 14:56:15 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2006-09-12 14:56:15 -0400 |
commit | d0ff90d5202428583c78a60c3042e7b60d88bc45 (patch) | |
tree | bd30b3259d44ed0395f03ce9ee6f481271df103b /e2fsck/iscan.c | |
parent | 62c6d1403ea00dd72890862c761a41baa10a7ad4 (diff) | |
download | e2fsprogs-d0ff90d5202428583c78a60c3042e7b60d88bc45.tar.gz |
Fix signed vs unsigned printf format strings for block and inode numbers
There were still some %d's lurking when we print blocks & inodes; also
many of the counters in the e2fsck_struct were signed, and probably
need to be unsigned to avoid overflows.
Signed-off-by: Eric Sandeen <esandeen@redhat.com>
Diffstat (limited to 'e2fsck/iscan.c')
-rw-r--r-- | e2fsck/iscan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/e2fsck/iscan.c b/e2fsck/iscan.c index 6501e1f2..7e1bbd30 100644 --- a/e2fsck/iscan.c +++ b/e2fsck/iscan.c @@ -98,7 +98,7 @@ int main (int argc, char *argv[]) int exit_value = FSCK_OK; ext2_filsys fs; ext2_ino_t ino; - int num_inodes = 0; + __u32 num_inodes = 0; struct ext2_inode inode; ext2_inode_scan scan; @@ -135,7 +135,7 @@ int main (int argc, char *argv[]) } print_resource_track(NULL, &global_rtrack); - printf(_("%d inodes scanned.\n"), num_inodes); + printf(_("%u inodes scanned.\n"), num_inodes); exit(0); } |