]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - scripts/dtc/srcpos.h
Merge tag 'sound-4.12-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound
[linux.git] / scripts / dtc / srcpos.h
index 2cdfcd82e95e09044827277fa66b83864c9e80bf..7caca8257c6d192e2b35c4c2fc9b317b1e74a870 100644 (file)
@@ -22,6 +22,7 @@
 
 #include <stdio.h>
 #include <stdbool.h>
+#include "util.h"
 
 struct srcfile_state {
        FILE *f;
@@ -106,12 +107,10 @@ extern void srcpos_update(struct srcpos *pos, const char *text, int len);
 extern struct srcpos *srcpos_copy(struct srcpos *pos);
 extern char *srcpos_string(struct srcpos *pos);
 
-extern void srcpos_verror(struct srcpos *pos, const char *prefix,
-                         const char *fmt, va_list va)
-       __attribute__((format(printf, 3, 0)));
-extern void srcpos_error(struct srcpos *pos, const char *prefix,
-                        const char *fmt, ...)
-       __attribute__((format(printf, 3, 4)));
+extern void PRINTF(3, 0) srcpos_verror(struct srcpos *pos, const char *prefix,
+                                       const char *fmt, va_list va);
+extern void PRINTF(3, 4) srcpos_error(struct srcpos *pos, const char *prefix,
+                                     const char *fmt, ...);
 
 extern void srcpos_set_line(char *f, int l);