mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-28 21:30:10 +01:00
platform/test: fake platform must use nm-logging for reporting errors
Just like linux platform does.
(cherry picked from commit 21b129084f)
This commit is contained in:
parent
fd40f223bf
commit
1bbf159cd0
1 changed files with 4 additions and 4 deletions
|
|
@ -1169,8 +1169,8 @@ ip4_route_add (NMPlatform *platform, int ifindex, NMIPConfigSource source,
|
|||
break;
|
||||
}
|
||||
if (i == priv->ip4_routes->len) {
|
||||
g_warning ("Fake platform: error adding %s: Network Unreachable",
|
||||
nm_platform_ip4_route_to_string (&route));
|
||||
nm_log_warn (LOGD_PLATFORM, "Fake platform: error adding %s: Network Unreachable",
|
||||
nm_platform_ip4_route_to_string (&route));
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
|
@ -1236,8 +1236,8 @@ ip6_route_add (NMPlatform *platform, int ifindex, NMIPConfigSource source,
|
|||
break;
|
||||
}
|
||||
if (i == priv->ip6_routes->len) {
|
||||
g_warning ("Fake platform: error adding %s: Network Unreachable",
|
||||
nm_platform_ip6_route_to_string (&route));
|
||||
nm_log_warn (LOGD_PLATFORM, "Fake platform: error adding %s: Network Unreachable",
|
||||
nm_platform_ip6_route_to_string (&route));
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue