[dm-devel] [PATCH] libmultipath: fix format warning with clang

mwilck at suse.com mwilck at suse.com
Fri Dec 18 22:37:53 UTC 2020


From: Martin Wilck <mwilck at suse.com>

Reported-by: Xose Vazquez Perez <xose.vazquez at gmail.com>
---
 libmultipath/log.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libmultipath/log.c b/libmultipath/log.c
index 6498c88..10fa32c 100644
--- a/libmultipath/log.c
+++ b/libmultipath/log.c
@@ -125,6 +125,7 @@ void log_reset (char *program_name)
 	pthread_cleanup_pop(1);
 }
 
+__attribute__((format(printf, 2, 0)))
 static int _log_enqueue(int prio, const char * fmt, va_list ap)
 {
 	int len, fwd;
-- 
2.29.0





More information about the dm-devel mailing list