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 /include | |
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 'include')
-rw-r--r-- | include/sys/zfs_debug.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sys/zfs_debug.h b/include/sys/zfs_debug.h index 8b9629fb5..7b103510d 100644 --- a/include/sys/zfs_debug.h +++ b/include/sys/zfs_debug.h @@ -61,7 +61,7 @@ extern int zfs_dbgmsg_enable; extern void __set_error(const char *file, const char *func, int line, int err); extern void __zfs_dbgmsg(char *buf); extern void __dprintf(boolean_t dprint, const char *file, const char *func, - int line, const char *fmt, ...); + int line, const char *fmt, ...) __attribute__((format(printf, 5, 6))); /* * Some general principles for using zfs_dbgmsg(): |