]> granicus.if.org Git - zfs/commit
Enable compiler to typecheck logging
authorMatthew Macy <mmacy@mattmacy.io>
Thu, 12 Sep 2019 20:28:26 +0000 (13:28 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 12 Sep 2019 20:28:26 +0000 (13:28 -0700)
commit74756182d2da0f8889b3a0a1fded274a2baa14f5
tree37aa242f27bb1e97be087b48362abbfb69d16412
parentd66620681d85105256203b4f4407f0092e5a7fe7
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
12 files changed:
include/os/linux/spl/sys/debug.h
include/sys/spa.h
lib/libspl/include/sys/debug.h
module/zfs/dmu_objset.c
module/zfs/dmu_recv.c
module/zfs/dsl_dataset.c
module/zfs/dsl_destroy.c
module/zfs/dsl_scan.c
module/zfs/dsl_userhold.c
module/zfs/spa.c
module/zfs/spa_checkpoint.c
module/zfs/vdev_removal.c