From b64c82a3ed75c15104f3dd5d43fa07ff60b6151c Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Fri, 8 Aug 2014 12:15:10 -0400 Subject: [PATCH] libnm-util: don't warn about unrecognized properties libnm-util is expected to end up behind the curve in terms of knowing about new NMSetting properties, so if it sees an unknown property, it should just assume that there will also be a backward-compatibility equivalent rather than printing a warning. (In particular, it should not warn when it sees the "ipv4.address-labels" property now that it now longer knows about it.) --- libnm-util/nm-setting.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libnm-util/nm-setting.c b/libnm-util/nm-setting.c index 94a0cac6e9..b479bf4aa0 100644 --- a/libnm-util/nm-setting.c +++ b/libnm-util/nm-setting.c @@ -394,8 +394,10 @@ nm_setting_new_from_hash (GType setting_type, GHashTable *hash) param_spec = g_object_class_find_property (class, prop_name); if (!param_spec) { - /* Oh, we're so nice and only warn, maybe it should be a fatal error? */ - g_warning ("Ignoring invalid property '%s'", prop_name); + /* Assume that any unrecognized property either can be ignored, or + * else has a backward-compatibility equivalent. + */ + g_debug ("Ignoring unrecognized property '%s'", prop_name); continue; }