diff options
author | Lennart Poettering <lennart@poettering.net> | 2019-01-03 12:19:10 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2019-01-07 17:50:39 +0100 |
commit | fc0f6fbffc6cb488768d8366f81cff5317acc14c (patch) | |
tree | 19545b14556e8eb2f4f0cd1f66f078494b793ab5 /src/shared/json.c | |
parent | loop-util: tweak codepath when a loopback file is "created" from an existing ... (diff) | |
download | systemd-fc0f6fbffc6cb488768d8366f81cff5317acc14c.tar.xz systemd-fc0f6fbffc6cb488768d8366f81cff5317acc14c.zip |
json: teach json_log() the new SYNTHETIC_ERRNO() logic
Diffstat (limited to 'src/shared/json.c')
-rw-r--r-- | src/shared/json.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/shared/json.c b/src/shared/json.c index 59c4617592..01faf4037b 100644 --- a/src/shared/json.c +++ b/src/shared/json.c @@ -3140,10 +3140,7 @@ int json_log_internal( va_list ap; int r; - if (error < 0) - error = -error; - - errno = error; + errno = ERRNO_VALUE(error); va_start(ap, format); (void) vsnprintf(buffer, sizeof buffer, format, ap); |