X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=src%2Flogging%2Fcomp-logging.h;h=1edabc0052947fa93bb7887bef3b169d00a821aa;hp=934e8487526026afbc27e2cc2729a4cacbc13709;hb=233bf25a7bd6782818a8630fa77c6a66ee6de274;hpb=7c0244d611a76645973a8b4880eb8ffc17ffc604 diff --git a/src/logging/comp-logging.h b/src/logging/comp-logging.h index 934e8487..1edabc00 100644 --- a/src/logging/comp-logging.h +++ b/src/logging/comp-logging.h @@ -166,8 +166,8 @@ * Logs error and appends error cause from component context - the errno * edition. */ -#define BT_COMP_LOGE_APPEND_CAUSE_ERRNO(_self_comp, _fmt, ...) \ - BT_COMP_LOG_APPEND_CAUSE_ERRNO(_self_comp, BT_LOG_ERROR, _fmt, ##__VA_ARGS__) +#define BT_COMP_LOGE_APPEND_CAUSE_ERRNO(_self_comp, _msg, _fmt, ...) \ + BT_COMP_LOG_APPEND_CAUSE_ERRNO(_self_comp, BT_LOG_ERROR, _msg, _fmt, ##__VA_ARGS__) /* Logs and appends error cause from component class context. */ #define BT_COMP_CLASS_LOG_APPEND_CAUSE(_self_comp_class, _lvl, _fmt, ...) \ @@ -198,8 +198,8 @@ * Logs error and appends error cause from component class context - the errno * edition. */ -#define BT_COMP_CLASS_LOGE_APPEND_CAUSE_ERRNO(_self_comp_class, _fmt, ...) \ - BT_COMP_CLASS_LOG_APPEND_CAUSE_ERRNO(_self_comp_class, BT_LOG_ERROR, _fmt, \ +#define BT_COMP_CLASS_LOGE_APPEND_CAUSE_ERRNO(_self_comp_class, _msg, _fmt, ...) \ + BT_COMP_CLASS_LOG_APPEND_CAUSE_ERRNO(_self_comp_class, BT_LOG_ERROR, _msg, _fmt, \ ##__VA_ARGS__) /*