From 57405c1b06ca6b640b24fec4cf2c6e6dbca539b2 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Wed, 30 Nov 2016 16:32:44 +0100 Subject: [PATCH] src/aubio_priv.h: add AUBIO_INF to print to stdout with header --- src/aubio_priv.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/aubio_priv.h b/src/aubio_priv.h index 72ba091d..9e0d0c6a 100644 --- a/src/aubio_priv.h +++ b/src/aubio_priv.h @@ -181,11 +181,13 @@ uint_t aubio_log(sint_t level, const char_t *fmt, ...); #ifdef HAVE_C99_VARARGS_MACROS #define AUBIO_ERR(...) aubio_log(AUBIO_LOG_ERR, "AUBIO ERROR: " __VA_ARGS__) +#define AUBIO_INF(...) aubio_log(AUBIO_LOG_MSG, "AUBIO INFO: " __VA_ARGS__) #define AUBIO_MSG(...) aubio_log(AUBIO_LOG_MSG, __VA_ARGS__) #define AUBIO_DBG(...) aubio_log(AUBIO_LOG_DBG, __VA_ARGS__) #define AUBIO_WRN(...) aubio_log(AUBIO_LOG_WRN, "AUBIO WARNING: " __VA_ARGS__) #else #define AUBIO_ERR(format, args...) aubio_log(stderr, "AUBIO ERROR: " format , ##args) +#define AUBIO_INF(format, args...) aubio_log(stdout, "AUBIO INFO: " format , ##args) #define AUBIO_MSG(format, args...) aubio_log(stdout, format , ##args) #define AUBIO_DBG(format, args...) aubio_log(stderr, format , ##args) #define AUBIO_WRN(format, args...) aubio_log(stderr, "AUBIO WARNING: " format, ##args) -- 2.11.0