mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-22 03:04:34 +01:00
zdb: Fix printf formatting of a uint64_t
This fixes the build on 32-bit platforms.
Fixes: dc91e74524
("zdb: dump ZAP_FLAG_UINT64_KEY ZAPs properly (#16334)")
This commit is contained in:
parent
2aeb3e204a
commit
f029f62779
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user