X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fshared%2Flog.h;h=b323b2f7d42bc8b011afae24073b8d3f9709e9ac;hp=2889e1e77fcd65cfd31526001db2c2f80e22f536;hb=1cfa9a4cbb41ef770614fa97961cc056a63c1b7c;hpb=1d22e9068c52c1cf935bcdff70b9b9654e3c939e;ds=sidebyside diff --git a/src/shared/log.h b/src/shared/log.h index 2889e1e77..b323b2f7d 100644 --- a/src/shared/log.h +++ b/src/shared/log.h @@ -156,12 +156,12 @@ void log_assert_failed_return( const char *func); /* Logging with level */ -#define log_full_errno(level, error, ...) \ - ({ \ - int _l = (level), _e = (error); \ - (log_get_max_level() >= LOG_PRI(_l)) \ - ? log_internal(_l, _e, __FILE__, __LINE__, __func__, __VA_ARGS__) \ - : -abs(_e); \ +#define log_full_errno(level, error, ...) \ + ({ \ + int _level = (level), _e = (error); \ + (log_get_max_level() >= LOG_PRI(_level)) \ + ? log_internal(_level, _e, __FILE__, __LINE__, __func__, __VA_ARGS__) \ + : -abs(_e); \ }) #define log_full(level, ...) log_full_errno(level, 0, __VA_ARGS__)