1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-25 06:03:40 +03:00

log: introduce log_trace_errno()

This commit is contained in:
Yu Watanabe 2022-01-28 10:50:36 +09:00
parent dd802109c6
commit 68a2ed61eb

View File

@ -273,9 +273,11 @@ int log_emergency_level(void);
})
#if LOG_TRACE
# define log_trace(...) log_debug(__VA_ARGS__)
# define log_trace(...) log_debug(__VA_ARGS__)
# define log_trace_errno(...) log_debug_errno(__VA_ARGS__)
#else
# define log_trace(...) do {} while (0)
# define log_trace(...) do {} while (0)
# define log_trace_errno(e, ...) (-ERRNO_VALUE(e))
#endif
/* Structured logging */