diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-01-28 02:50:36 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-01-28 02:50:36 +0100 |
commit | 68a2ed61ebd00bbb94bcbe23e1cc05154eea94c3 (patch) | |
tree | e3e384932f93e53e577f418b2fae75327ef021e8 /src/basic/log.h | |
parent | Merge pull request #22276 from mrc0mmand/TEST-64-workaround (diff) | |
download | systemd-68a2ed61ebd00bbb94bcbe23e1cc05154eea94c3.tar.xz systemd-68a2ed61ebd00bbb94bcbe23e1cc05154eea94c3.zip |
log: introduce log_trace_errno()
Diffstat (limited to '')
-rw-r--r-- | src/basic/log.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/basic/log.h b/src/basic/log.h index 1e2bec1646..0d927bfce9 100644 --- a/src/basic/log.h +++ b/src/basic/log.h @@ -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 */ |