Skip to contentSkip to conversation

master - cleanup: add gcc printf __attribute__

PATCH Zdenek Kabelac 1 participant 1 message Oct 13, 2012

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=7c7ab99843837bd9099ea502c8a34c05fad495c3
Commit:        7c7ab99843837bd9099ea502c8a34c05fad495c3
Parent:        feea5003cc0af2647f45a46d7b1d449a2f75e99b
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Sat Oct 13 19:14:41 2012 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Sat Oct 13 19:14:41 2012 +0200

cleanup: add gcc printf __attribute__

---
 .../lvm2_activation_generator_systemd_red_hat.c    |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
scripts/lvm2_activation_generator_systemd_red_hat.c +1 -0
index b8d1cfc..dfd6fc4 100644
@@ -34,6 +34,7 @@ static char target_path[PATH_MAX];
 static char message[PATH_MAX];
 static int kmsg_fd = -1;
 
+__attribute__ ((format(printf, 1, 2)))
 static void kmsg(const char *format, ...)
 {
 	va_list ap;