X-Git-Url: https://git.distorted.org.uk/~mdw/mLib/blobdiff_plain/18c831dcd0ae4d660c70ccac69d27ed2a97851be..ecfe3bffa6cc019ba7e358dbe359f10e5ce6a09d:/trace/trace.h diff --git a/trace/trace.h b/trace/trace.h index 77e5ed4..a7edc37 100644 --- a/trace/trace.h +++ b/trace/trace.h @@ -36,6 +36,10 @@ #include +#ifndef MLIB_MACROS_H +# include "macros.h" +#endif + /*----- Data structures ---------------------------------------------------*/ typedef struct trace_opt { @@ -57,7 +61,8 @@ typedef struct trace_opt { * Use: Reports a message to the trace output. */ -extern void trace(unsigned /*l*/, const char */*f*/, ...); +extern void PRINTF_LIKE(2, 3) + trace(unsigned /*l*/, const char */*f*/, ...); /* --- @trace_block@ --- * *