json: teach json_log() the new SYNTHETIC_ERRNO() logic

This commit is contained in:
Lennart Poettering
2019-01-07 17:50:39 +01:00
parent 16420be1fd
commit fc0f6fbffc
2 changed files with 1 additions and 5 deletions
+1 -4
View File
@@ -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);