From: Matthias Andree Date: Sat, 20 Dec 2003 23:52:48 +0000 (+0100) Subject: Trivial warning fixes. X-Git-Tag: E2FSPROGS-1_35-WIP-0131~22 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=aa3a2fe49a7f2fed1c945e2ad4b858b39a4e0a7b;p=tools%2Fe2fsprogs.git Trivial warning fixes. --- diff --git a/misc/filefrag.c b/misc/filefrag.c index 043e0ba..c8cf38f 100644 --- a/misc/filefrag.c +++ b/misc/filefrag.c @@ -21,6 +21,7 @@ #include #include #include +#include #include int verbose = 0; @@ -73,7 +74,7 @@ void frag_report(const char *filename) (fsinfo.f_type == 0xef53)) is_ext2++; if (verbose) { - printf("Filesystem type is: %lx\n", fsinfo.f_type); + printf("Filesystem type is: %x\n", fsinfo.f_type); } cylgroups = (fsinfo.f_blocks + fsinfo.f_bsize*8-1) / fsinfo.f_bsize*8; if (verbose) { @@ -90,11 +91,11 @@ void frag_report(const char *filename) return; } if (verbose) - printf("Blocksize of file %s is %d\n", filename, bs); + printf("Blocksize of file %s is %ld\n", filename, bs); bpib = bs / 4; numblocks = (fileinfo.st_size + (bs-1)) / bs; if (verbose) - printf("File size of %s is %lld (%d blocks)\n", filename, + printf("File size of %s is %lld (%ld blocks)\n", filename, (long long) fileinfo.st_size, numblocks); for (i=0; i < numblocks; i++) { if (is_ext2) {