multipath tests: fix -Wformat-literal warning
authorMartin Wilck <mwilck@suse.com>
Sat, 12 Oct 2019 21:28:56 +0000 (21:28 +0000)
committerChristophe Varoqui <christophe.varoqui@opensvc.com>
Mon, 2 Mar 2020 08:19:50 +0000 (09:19 +0100)
Signed-off-by: Martin Wilck <mwilck@suse.com>
tests/test-log.c

index 76a266e..d685d58 100644 (file)
@@ -6,6 +6,7 @@
 #include "log.h"
 #include "test-log.h"
 
+__attribute__((format(printf, 3, 0)))
 void __wrap_dlog (int sink, int prio, const char * fmt, ...)
 {
        char buff[MAX_MSG_SIZE];