mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-25 03:37:45 +03:00
Enable compiler to typecheck logging
Annotate spa logging declarations with printflike Workaround gcc bug (non disable-able warning) by replacing "" with " " Reviewed-by: Matt Ahrens <matt@delphix.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Matt Macy <mmacy@FreeBSD.org> Closes #9316
This commit is contained in:
committed by
Brian Behlendorf
parent
d66620681d
commit
74756182d2
@@ -197,7 +197,7 @@ dsl_dataset_user_hold_sync_one_impl(nvlist_t *tmpholds, dsl_dataset_t *ds,
|
||||
|
||||
spa_history_log_internal_ds(ds, "hold", tx,
|
||||
"tag=%s temp=%d refs=%llu",
|
||||
htag, minor != 0, ds->ds_userrefs);
|
||||
htag, minor != 0, (u_longlong_t)ds->ds_userrefs);
|
||||
}
|
||||
|
||||
typedef struct zfs_hold_cleanup_arg {
|
||||
|
||||
Reference in New Issue
Block a user