diff options
author | Rich Ercolani <[email protected]> | 2021-06-23 00:53:45 -0400 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2021-06-24 13:12:36 -0700 |
commit | 5e89181544a53e307c9f7850ee5eef21d39e6394 (patch) | |
tree | ca3bfcf2560883d6cf442a66c3bf108732297b4a /lib | |
parent | dfbda2465f3418eccf92a560e291b6ab77410243 (diff) |
Annotated dprintf as printf-like
ZFS loves using %llu for uint64_t, but that requires a cast to not
be noisy - which is even done in many, though not all, places.
Also a couple places used %u for uint64_t, which were promoted
to %llu.
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Rich Ercolani <[email protected]>
Closes #12233
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libzpool/kernel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libzpool/kernel.c b/lib/libzpool/kernel.c index cc8e534e7..09812dece 100644 --- a/lib/libzpool/kernel.c +++ b/lib/libzpool/kernel.c @@ -796,7 +796,7 @@ kernel_init(int mode) physmem = sysconf(_SC_PHYS_PAGES); - dprintf("physmem = %llu pages (%.2f GB)\n", physmem, + dprintf("physmem = %llu pages (%.2f GB)\n", (u_longlong_t)physmem, (double)physmem * sysconf(_SC_PAGE_SIZE) / (1ULL << 30)); (void) snprintf(hw_serial, sizeof (hw_serial), "%ld", |