mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
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 <behlendorf1@llnl.gov> Signed-off-by: Rich Ercolani <rincebrain@gmail.com> Closes #12233
This commit is contained in:
@@ -127,7 +127,8 @@ __set_error(const char *file, const char *func, int line, int err)
|
||||
* $ echo 512 >/sys/module/zfs/parameters/zfs_flags
|
||||
*/
|
||||
if (zfs_flags & ZFS_DEBUG_SET_ERROR)
|
||||
__dprintf(B_FALSE, file, func, line, "error %lu", err);
|
||||
__dprintf(B_FALSE, file, func, line, "error %lu",
|
||||
(ulong_t)err);
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user