summaryrefslogtreecommitdiff
path: root/src/shared/log.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-11-28 02:12:30 +0100
committerLennart Poettering <lennart@poettering.net>2014-11-28 02:18:46 +0100
commit8f16f51d9323e87cc78d28e9656984c028071f94 (patch)
tree0354a56d378fc37f7dd5c0b17d3d138bbb3e99c5 /src/shared/log.h
parente2cc6eca73cd1df8be552d7c23f9ff3d69c06f1e (diff)
log: allow negative errno values
sd_bus_error_set_errno() allows negative errors too, hence, be equally nice.
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 3a4d1134a1..3180dfd638 100644
--- a/src/shared/log.h
+++ b/src/shared/log.h
@@ -202,7 +202,7 @@ LogTarget log_target_from_string(const char *s) _pure_;
/* Helpers to prepare various fields for structured logging */
#define LOG_MESSAGE(fmt, ...) "MESSAGE=" fmt, ##__VA_ARGS__
#define LOG_MESSAGE_ID(x) "MESSAGE_ID=" SD_ID128_FORMAT_STR, SD_ID128_FORMAT_VAL(x)
-#define LOG_ERRNO(error) "ERRNO=%i", error
+#define LOG_ERRNO(error) "ERRNO=%i", abs(error)
void log_received_signal(int level, const struct signalfd_siginfo *si);