Missing semicolon at the end of macros can confuse some analyzers
(like cppcheck <filename>), and we have a mix of semicolon and
non-semicolon usage through the code. Let's standardize on using
a semicolon for VIR_LOG_INIT calls.
Drop the semicolon from the final statement of the macro, so
the compiler will require callers to add a semicolon.
Reviewed-by: John Ferlan <jferlan@redhat.com>
Signed-off-by: Cole Robinson <crobinso@redhat.com>
#define SYSFS_SYSTEM_PATH "/sys/devices/system"
-VIR_LOG_INIT("conf.capabilities")
+VIR_LOG_INIT("conf.capabilities");
VIR_ENUM_DECL(virCapsHostPMTarget);
VIR_ENUM_IMPL(virCapsHostPMTarget, VIR_NODE_SUSPEND_TARGET_LAST,
#define VIR_FROM_THIS VIR_FROM_QEMU
-VIR_LOG_INIT("qemu.qemu_extdevice")
+VIR_LOG_INIT("qemu.qemu_extdevice");
int
qemuExtDeviceLogCommand(qemuDomainLogContextPtr logCtxt,
#define VIR_FROM_THIS VIR_FROM_NONE
-VIR_LOG_INIT("qemu.tpm")
+VIR_LOG_INIT("qemu.tpm");
/*
* executables for the swtpm; to be found on the host
#define VIR_FROM_THIS VIR_FROM_NONE
-VIR_LOG_INIT("util.filecache")
+VIR_LOG_INIT("util.filecache");
struct _virFileCache {
.priority = VIR_LOG_ERROR, \
.serial = 0, \
.flags = 0, \
- };
+ }
/*
* If configured with --enable-debug=yes then library calls
#define VIR_FROM_THIS VIR_FROM_RESCTRL
-VIR_LOG_INIT("util.virresctrl")
+VIR_LOG_INIT("util.virresctrl");
/* Resctrl is short for Resource Control. It might be implemented for various