X-Git-Url: https://git.distorted.org.uk/~mdw/mLib/blobdiff_plain/5b078c11a05739c5869a6fff858019a7c520ca83..3832000d8a0d417dbfda0ca2d26bc7d66f7f4741:/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@ --- * *