Skip to contentSkip to conversation

libext2fs: fix printf conversion spec in tst_iscan.c

PATCH Applied Eric Whitney 2 participants 2 messages Nov 11, 2013 – Dec 3, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libext2fs: fix printf conversion spec in tst_iscan.c

A recent patch to fix blk_t to blk64_t assignment mismatches in e2fsprogs (commit 4dbfd79d1458ce1259b951377e341aeb6197f8c1) created a printf conversion spec / argument type mismatch in tst_iscan.c. Fix this to avoid truncation of the printed value and to silence a compiler warning seen when "make check" is run.

---
 lib/ext2fs/tst_iscan.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/ext2fs/tst_iscan.c +1 -1
index a95296c..70bfbec 100644
@@ -182,7 +182,7 @@ static void check_map(void)
 
 	for (i=0; test_vec[i]; i++) {
 		if (ext2fs_test_block_bitmap2(touched_map, test_vec[i])) {
-			printf("Bad block was touched --- %u\n", test_vec[i]);
+			printf("Bad block was touched --- %llu\n", test_vec[i]);
 			failed++;
 			first_no_comma = 1;
 		}
Signature · 1 line
1.8.3.2
#1 lore raw
Quoted 7 lines · Eric Whitney

A recent patch to fix blk_t to blk64_t assignment mismatches in e2fsprogs (commit 4dbfd79d1458ce1259b951377e341aeb6197f8c1) created a printf conversion spec / argument type mismatch in tst_iscan.c. Fix this to avoid truncation of the printed value and to silence a compiler warning seen when "make check" is run.

Thanks, applied.

- Ted