Commit 70a3c55a authored by Alessandro Rubini's avatar Alessandro Rubini

userspace: trace.h: use attribute((printf)) so to find bugs in prints

Use of attribute like this would have pointed to the previous bugfix
years ago.
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 5127702b
......@@ -17,6 +17,8 @@
void trace_log_stderr();
void trace_log_file(const char *filename);
void trace_printf(const char *fname, int lineno, int level, const char *fmt,
...);
...)
__attribute__((format(printf,4,5)));
#endif /* __LIBWR_TRACE_H */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment