lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-ID: <538777C6.7080001@redhat.com> Date: Thu, 29 May 2014 13:09:10 -0500 From: Eric Sandeen <sandeen@...hat.com> To: ext4 development <linux-ext4@...r.kernel.org> Subject: {PATCH] e2fsprogs: fix printf format in print_blocks_proc() blockcnt is of type e2_blkcnt_t, which is: typedef __s64 __bitwise e2_blkcnt_t; so use %lld not %d to print it. Signed-off-by: Eric Sandeen <sandeen@...hat.com> --- diff --git a/lib/ext2fs/tst_libext2fs.c b/lib/ext2fs/tst_libext2fs.c index 1f63eb7..b4fb7f2 100644 --- a/lib/ext2fs/tst_libext2fs.c +++ b/lib/ext2fs/tst_libext2fs.c @@ -37,7 +37,7 @@ static int print_blocks_proc(ext2_filsys fs EXT2FS_ATTR((unused)), blk64_t ref_block, int ref_offset, void *private EXT2FS_ATTR((unused))) { - printf("%6d %8llu (%d %llu)\n", blockcnt, *blocknr, + printf("%6lld %8llu (%d %llu)\n", (long long)blockcnt, *blocknr, ref_offset, ref_block); return 0; } -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists