summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-02-18 18:27:32 +0100
committerLennart Poettering <lennart@poettering.net>2015-02-18 18:56:27 +0100
commit1cfa9a4cbb41ef770614fa97961cc056a63c1b7c (patch)
treeb0d9a36bd4ac9a1c5a57e54880606c040ab45136 /src/shared
parent1d22e9068c52c1cf935bcdff70b9b9654e3c939e (diff)
systemctl: let's make use of FOREACH_STRING() where we can
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/log.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/shared/log.h b/src/shared/log.h
index 2889e1e77f..b323b2f7d4 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__)