From 1bbf159cd068cc6143f4cd27388674e1ea964993 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Thu, 26 Mar 2015 11:37:49 +0100 Subject: [PATCH] platform/test: fake platform must use nm-logging for reporting errors Just like linux platform does. (cherry picked from commit 21b129084fb3ac026a17cbde4e1743f0990b8658) --- src/platform/nm-fake-platform.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/platform/nm-fake-platform.c b/src/platform/nm-fake-platform.c index 8288fb9fc4..806d661f78 100644 --- a/src/platform/nm-fake-platform.c +++ b/src/platform/nm-fake-platform.c @@ -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; } }