summaryrefslogtreecommitdiff
path: root/src/shared/log.h
diff options
context:
space:
mode:
authorMichal Schmidt <mschmidt@redhat.com>2014-11-28 11:54:25 +0100
committerMichal Schmidt <mschmidt@redhat.com>2014-11-28 11:54:25 +0100
commitb4d23205f238e06aaa31264628e20669e714acad (patch)
treedf83b1a4aae41cf8ab3e43da155286ceb584441c /src/shared/log.h
parente8bbb7c7e9163420cb1ba92f82dbc09aab577d1a (diff)
shared: fix log_emergency_errno macro
It was not passing the error argument.
Diffstat (limited to 'src/shared/log.h')
-rw-r--r--src/shared/log.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/log.h b/src/shared/log.h
index a6b933605d..2b6971f248 100644
--- a/src/shared/log.h
+++ b/src/shared/log.h
@@ -179,7 +179,7 @@ void log_assert_failed_return(
#define log_notice_errno(error, ...) log_full_errno(LOG_NOTICE, error, __VA_ARGS__)
#define log_warning_errno(error, ...) log_full_errno(LOG_WARNING, error, __VA_ARGS__)
#define log_error_errno(error, ...) log_full_errno(LOG_ERR, error, __VA_ARGS__)
-#define log_emergency_errno(error, ...) log_full_errno(getpid() == 1 ? LOG_EMERG : LOG_ERR, __VA_ARGS__)
+#define log_emergency_errno(error, ...) log_full_errno(getpid() == 1 ? LOG_EMERG : LOG_ERR, error, __VA_ARGS__)
#ifdef LOG_TRACE
# define log_trace(...) log_debug(__VA_ARGS__)