mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-23 14:00:28 +01:00
dns: minor fix of logging with unset dns mode
With [main] #dns= we would see in the log: dns-mgr: init: dns=(null), rc-manager=symlink Instead, it should be dns-mgr: init: dns=default, rc-manager=symlink Also, we should avoid logging NULL values with "%s", although glib's printf is fine with that.
This commit is contained in:
parent
4711867915
commit
bcb88d540e
1 changed files with 3 additions and 2 deletions
|
|
@ -1617,8 +1617,9 @@ again:
|
|||
plugin_changed = TRUE;
|
||||
}
|
||||
} else {
|
||||
if (!NM_IN_STRSET (mode, NULL, "none", "default")) {
|
||||
_LOGW ("init: unknown dns mode '%s'", mode);
|
||||
if (!NM_IN_STRSET (mode, "none", "default")) {
|
||||
if (mode)
|
||||
_LOGW ("init: unknown dns mode '%s'", mode);
|
||||
mode = "default";
|
||||
}
|
||||
if (_clear_plugin (self))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue