mirror of
https://github.com/systemd/systemd.git
synced 2024-11-01 09:21:26 +03:00
json: teach json_log() the new SYNTHETIC_ERRNO() logic
This commit is contained in:
parent
16420be1fd
commit
fc0f6fbffc
@ -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);
|
||||
|
@ -1,5 +1,4 @@
|
||||
/* SPDX-License-Identifier: LGPL-2.1+ */
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <stdbool.h>
|
||||
|
Loading…
Reference in New Issue
Block a user