Skip to content

Commit 0d54ae2

Browse files
authored
zdb: Fix format strings on 32-bit systems
Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Alexander Motin <[email protected]> Signed-off-by: Mark Johnston <[email protected]> Closes #17665
1 parent b6bd322 commit 0d54ae2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cmd/zdb/zdb.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2634,8 +2634,8 @@ print_indirect(spa_t *spa, blkptr_t *bp, const zbookmark_phys_t *zb,
26342634
}
26352635
if (BP_GET_LEVEL(bp) != zb->zb_level) {
26362636
(void) printf(" (ERROR: Block pointer level "
2637-
"(%llu) does not match bookmark level (%ld))",
2638-
BP_GET_LEVEL(bp), zb->zb_level);
2637+
"(%llu) does not match bookmark level (%lld))",
2638+
BP_GET_LEVEL(bp), (longlong_t)zb->zb_level);
26392639
corruption_found = B_TRUE;
26402640
}
26412641
}
@@ -2688,8 +2688,8 @@ visit_indirect(spa_t *spa, const dnode_phys_t *dnp,
26882688
if (fill != BP_GET_FILL(bp)) {
26892689
(void) printf("%16llx: Block pointer "
26902690
"fill (%llu) does not match calculated "
2691-
"value (%lu)\n", offset, BP_GET_FILL(bp),
2692-
fill);
2691+
"value (%llu)\n", offset, BP_GET_FILL(bp),
2692+
(u_longlong_t)fill);
26932693
corruption_found = B_TRUE;
26942694
}
26952695
}

0 commit comments

Comments
 (0)