From: Paul Brossier Date: Wed, 30 Nov 2016 15:32:44 +0000 (+0100) Subject: src/aubio_priv.h: add AUBIO_INF to print to stdout with header X-Git-Tag: 0.4.4~129 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=57405c1b06ca6b640b24fec4cf2c6e6dbca539b2;p=aubio.git src/aubio_priv.h: add AUBIO_INF to print to stdout with header --- 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)