Skip to contentSkip to conversation

audio: Use GCC_FMT_ATTR (format checking)

PATCH Applied Stefan Weil 2 participants 2 messages Nov 15, 2010 – Dec 4, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 audio: Use GCC_FMT_ATTR (format checking)

---
 audio/audio_pt_int.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
audio/audio_pt_int.c +2 -1
index f15cc70..908c569 100644
@@ -8,7 +8,8 @@
 
 #include <signal.h>
 
-static void logerr (struct audio_pt *pt, int err, const char *fmt, ...)
+static void GCC_FMT_ATTR(3, 4) logerr (struct audio_pt *pt, int err,
+                                       const char *fmt, ...)
 {
     va_list ap;
 
Signature · 1 line
1.7.2.3
Applied
#1 lore raw

Thanks, applied.

Quoted 24 lines · Stefan Weil

---
 audio/audio_pt_int.c |    3 ++-

 1 files changed, 2 insertions(+), 1 deletions(-)
audio/audio_pt_int.c +2 -2
index f15cc70..908c569 100644
@@ -8,7 +8,8 @@
 
  #include <signal.h>
 
-static void logerr (struct audio_pt *pt, int err, const char *fmt, ...)
+static void GCC_FMT_ATTR(3, 4) logerr (struct audio_pt *pt, int err,
+                                       const char *fmt, ...)
  {
     va_list ap;
 
--

1.7.2.3