We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e588f6 commit 6d9a89eCopy full SHA for 6d9a89e
scripts/mod/modpost.c
@@ -33,7 +33,9 @@ enum export {
33
export_unused_gpl, export_gpl_future, export_unknown
34
};
35
36
-void fatal(const char *fmt, ...)
+#define PRINTF __attribute__ ((format (printf, 1, 2)))
37
+
38
+PRINTF void fatal(const char *fmt, ...)
39
{
40
va_list arglist;
41
@@ -46,7 +48,7 @@ void fatal(const char *fmt, ...)
46
48
exit(1);
47
49
}
50
-void warn(const char *fmt, ...)
51
+PRINTF void warn(const char *fmt, ...)
52
53
54
@@ -57,7 +59,7 @@ void warn(const char *fmt, ...)
57
59
va_end(arglist);
58
60
61
-void merror(const char *fmt, ...)
62
+PRINTF void merror(const char *fmt, ...)
63
64
65
0 commit comments