mirror of
https://github.com/systemd/systemd.git
synced 2024-12-25 01:34:28 +03:00
log: drop unused log_full_errno_realm() macro
This commit is contained in:
parent
6dcf299d9b
commit
5df4f46f28
@ -232,18 +232,14 @@ void log_assert_failed_return_realm(
|
|||||||
log_dispatch_internal(level, error, PROJECT_FILE, __LINE__, __func__, NULL, NULL, NULL, NULL, buffer)
|
log_dispatch_internal(level, error, PROJECT_FILE, __LINE__, __func__, NULL, NULL, NULL, NULL, buffer)
|
||||||
|
|
||||||
/* Logging with level */
|
/* Logging with level */
|
||||||
#define log_full_errno_realm(realm, level, error, ...) \
|
#define log_full_errno(level, error, ...) \
|
||||||
({ \
|
({ \
|
||||||
int _level = (level), _e = (error), _realm = (realm); \
|
int _level = (level), _e = (error); \
|
||||||
(log_get_max_level_realm(_realm) >= LOG_PRI(_level)) \
|
(log_get_max_level() >= LOG_PRI(_level)) \
|
||||||
? log_internal_realm(LOG_REALM_PLUS_LEVEL(_realm, _level), _e, \
|
? log_internal(_level, _e, PROJECT_FILE, __LINE__, __func__, __VA_ARGS__) \
|
||||||
PROJECT_FILE, __LINE__, __func__, __VA_ARGS__) \
|
|
||||||
: -ERRNO_VALUE(_e); \
|
: -ERRNO_VALUE(_e); \
|
||||||
})
|
})
|
||||||
|
|
||||||
#define log_full_errno(level, error, ...) \
|
|
||||||
log_full_errno_realm(LOG_REALM, (level), (error), __VA_ARGS__)
|
|
||||||
|
|
||||||
#define log_full(level, ...) (void) log_full_errno((level), 0, __VA_ARGS__)
|
#define log_full(level, ...) (void) log_full_errno((level), 0, __VA_ARGS__)
|
||||||
|
|
||||||
int log_emergency_level(void);
|
int log_emergency_level(void);
|
||||||
|
Loading…
Reference in New Issue
Block a user