Code

Turbostat: specify parse_int_file format
authorVincent Brillault <git@lerya.net>
Thu, 21 Aug 2014 16:11:24 +0000 (18:11 +0200)
committerVincent Brillault <git@lerya.net>
Sat, 28 Feb 2015 06:35:40 +0000 (07:35 +0100)
src/turbostat.c

index a003ca83787b8db1818dca21f68267e77c55da15..5424a30587721b75327869037d81482561f2b1be 100644 (file)
@@ -575,7 +575,7 @@ free_all_buffers(void)
 /*
  * Parse a file containing a single int.
  */
-static int
+static int __attribute__ ((format(printf,1,2)))
 parse_int_file(const char *fmt, ...)
 {
        va_list args;