From eac0573d5e67e4377e4efda57db655ef8e9cec58 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Thu, 20 Feb 2014 14:40:35 -0500 Subject: [PATCH] platform: log warnings if macvlan/gre property reads fail --- src/platform/nm-linux-platform.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/platform/nm-linux-platform.c b/src/platform/nm-linux-platform.c index c3c25d948..b47ee7481 100644 --- a/src/platform/nm-linux-platform.c +++ b/src/platform/nm-linux-platform.c @@ -2244,6 +2244,10 @@ macvlan_get_properties (NMPlatform *platform, int ifindex, NMPlatformMacvlanProp err = nm_rtnl_link_parse_info_data (priv->nlh, ifindex, macvlan_info_data_parser, props); + if (err != 0) { + warning ("(%s) could not read properties: %s", + rtnl_link_get_name (rtnllink), nl_geterror (err)); + } return (err == 0); } @@ -2294,6 +2298,10 @@ gre_get_properties (NMPlatform *platform, int ifindex, NMPlatformGreProperties * err = nm_rtnl_link_parse_info_data (priv->nlh, ifindex, gre_info_data_parser, props); + if (err != 0) { + warning ("(%s) could not read properties: %s", + link_get_name (platform, ifindex), nl_geterror (err)); + } return (err == 0); }