Skip to content

Commit

Permalink
zdb: Fix printf formatting of a uint64_t
Browse files Browse the repository at this point in the history
This fixes the build on 32-bit platforms.

Fixes:	dc91e74 ("zdb: dump ZAP_FLAG_UINT64_KEY ZAPs properly (#16334)")
  • Loading branch information
markjdb committed Jul 18, 2024
1 parent 2aeb3e2 commit f029f62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sys/contrib/openzfs/cmd/zdb/zdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1131,8 +1131,8 @@ dump_zap(objset_t *os, uint64_t object, void *data, size_t size)
!!(zap_getflags(zc.zc_zap) & ZAP_FLAG_UINT64_KEY);

if (key64)
(void) printf("\t\t0x%010lx = ",
*(uint64_t *)attr.za_name);
(void) printf("\t\t0x%010llx = ",
(u_longlong_t)*(uint64_t *)attr.za_name);
else
(void) printf("\t\t%s = ", attr.za_name);

Expand Down

0 comments on commit f029f62

Please sign in to comment.