mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-09-20 00:21:29 +00:00
systemd/adapt: update logging prefix for systemd log_internal()
We used to prefix messages from systemd with "sd-dhcp". Since we no longer use the systemd code only for DHCP, change the prefix to "libsystemd".
This commit is contained in:
parent
2d2d742cf1
commit
ca00c146d4
|
@ -47,12 +47,13 @@ _slog_level_to_nm (int slevel)
|
|||
|
||||
#define log_internal(level, error, file, line, func, format, ...) \
|
||||
({ \
|
||||
int _nm_e = (error); \
|
||||
NMLogLevel _nm_l = _slog_level_to_nm ((level)); \
|
||||
const int _nm_e = (error); \
|
||||
const NMLogLevel _nm_l = _slog_level_to_nm ((level)); \
|
||||
\
|
||||
if (nm_logging_enabled (_nm_l, LOGD_DHCP)) { \
|
||||
const char *_nm_location = strrchr ((""file), '/'); \
|
||||
\
|
||||
_nm_log_impl (_nm_location ? _nm_location + 1 : (""file), (line), (func), _nm_l, LOGD_DHCP, _nm_e, ("%s"format), "sd-dhcp: ", ## __VA_ARGS__); \
|
||||
_nm_log_impl (_nm_location ? _nm_location + 1 : (""file), (line), (func), _nm_l, LOGD_DHCP, _nm_e, ("%s"format), "libsystemd: ", ## __VA_ARGS__); \
|
||||
} \
|
||||
(_nm_e > 0 ? -_nm_e : _nm_e); \
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue