summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2015-03-26 11:37:49 +0100
committerThomas Haller <thaller@redhat.com>2015-04-08 14:39:16 +0200
commit21b129084fb3ac026a17cbde4e1743f0990b8658 (patch)
treef88145edd3f8b30db7f2bed4bf8b6f6b7bc4db18
parent24288f713afd9626255523374b8a71fccd349f79 (diff)
downloadNetworkManager-21b129084fb3ac026a17cbde4e1743f0990b8658.tar.gz
platform/test: fake platform must use nm-logging for reporting errors
Just like linux platform does.
-rw-r--r--src/platform/nm-fake-platform.c8
1 files 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;
}
}