diff options
author | Keith Packard <keithp@keithp.com> | 2014-01-22 19:16:36 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2014-01-27 11:38:34 -0800 |
commit | 61cb6c9aa95aa369573c4e02c023bbc33c7678c9 (patch) | |
tree | 696c83e1ba5c3ece9a0d499ea853e6eac95b1aff /pseudoramiX | |
parent | 9e45a1a030a5e70318441f33a132269a19a43df5 (diff) |
pseudoramiX: Add _X_ATTRIBUTE_PRINTF attributes to debug functions.
Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'pseudoramiX')
-rw-r--r-- | pseudoramiX/pseudoramiX.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pseudoramiX/pseudoramiX.c b/pseudoramiX/pseudoramiX.c index 23dbc7328..f47c7836d 100644 --- a/pseudoramiX/pseudoramiX.c +++ b/pseudoramiX/pseudoramiX.c @@ -100,6 +100,10 @@ static unsigned long pseudoramiXGeneration = 0; static void PseudoramiXTrace(const char *format, ...) + _X_ATTRIBUTE_PRINTF(1, 2); + +static void +PseudoramiXTrace(const char *format, ...) { va_list ap; @@ -110,6 +114,10 @@ PseudoramiXTrace(const char *format, ...) static void PseudoramiXDebug(const char *format, ...) + _X_ATTRIBUTE_PRINTF(1, 2); + +static void +PseudoramiXDebug(const char *format, ...) { va_list ap; |