Changeset 0f214ff for src


Ignore:
Timestamp:
Jan 4, 2017, 4:44:42 PM (7 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, sampler, yinfft+
Children:
f5e9e3f
Parents:
9681849
Message:

src/aubio_priv.h: use AUBIO_LOG_INF, fix old c style

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/aubio_priv.h

    r9681849 r0f214ff  
    184184#ifdef HAVE_C99_VARARGS_MACROS
    185185#define AUBIO_ERR(...)               aubio_log(AUBIO_LOG_ERR, "AUBIO ERROR: " __VA_ARGS__)
    186 #define AUBIO_INF(...)               aubio_log(AUBIO_LOG_MSG, "AUBIO INFO: " __VA_ARGS__)
     186#define AUBIO_INF(...)               aubio_log(AUBIO_LOG_INF, "AUBIO INFO: " __VA_ARGS__)
    187187#define AUBIO_MSG(...)               aubio_log(AUBIO_LOG_MSG, __VA_ARGS__)
    188188#define AUBIO_DBG(...)               aubio_log(AUBIO_LOG_DBG, __VA_ARGS__)
    189189#define AUBIO_WRN(...)               aubio_log(AUBIO_LOG_WRN, "AUBIO WARNING: " __VA_ARGS__)
    190190#else
    191 #define AUBIO_ERR(format, args...)   aubio_log(stderr, "AUBIO ERROR: " format , ##args)
    192 #define AUBIO_INF(format, args...)   aubio_log(stdout, "AUBIO INFO: " format , ##args)
    193 #define AUBIO_MSG(format, args...)   aubio_log(stdout, format , ##args)
    194 #define AUBIO_DBG(format, args...)   aubio_log(stderr, format , ##args)
    195 #define AUBIO_WRN(format, args...)   aubio_log(stderr, "AUBIO WARNING: " format, ##args)
     191#define AUBIO_ERR(format, args...)   aubio_log(AUBIO_LOG_ERR, "AUBIO ERROR: " format , ##args)
     192#define AUBIO_INF(format, args...)   aubio_log(AUBIO_LOG_INF, "AUBIO INFO: " format , ##args)
     193#define AUBIO_MSG(format, args...)   aubio_log(AUBIO_LOG_MSG, format , ##args)
     194#define AUBIO_DBG(format, args...)   aubio_log(AUBIO_LOG_DBG, format , ##args)
     195#define AUBIO_WRN(format, args...)   aubio_log(AUBIO_LOG_WRN, "AUBIO WARNING: " format, ##args)
    196196#endif
    197197
Note: See TracChangeset for help on using the changeset viewer.