summaryrefslogtreecommitdiff
path: root/libnm-util/nm-setting-8021x.c
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2016-02-28 18:12:28 +0100
committerThomas Haller <thaller@redhat.com>2016-03-03 18:54:20 +0100
commitcd4f84b7381707bff6e5fcc3cee84492e12c6879 (patch)
tree1dbe34839e59cf1d1d61e63dc3da56034a4c3508 /libnm-util/nm-setting-8021x.c
parent6265398b6e33ea67d73c592dd3a88f3fafc5bc7a (diff)
downloadNetworkManager-cd4f84b7381707bff6e5fcc3cee84492e12c6879.tar.gz
all: don't include error->code in log messages
GError codes are only unique per domain, so logging the code without also indicating the domain is not helpful. And anyway, if the error messages are not distinctive enough to tell the whole story then we should fix the error messages. Based-on-patch-by: Dan Winship <danw@gnome.org>
Diffstat (limited to 'libnm-util/nm-setting-8021x.c')
-rw-r--r--libnm-util/nm-setting-8021x.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/libnm-util/nm-setting-8021x.c b/libnm-util/nm-setting-8021x.c
index f476b2489b..4f974a413a 100644
--- a/libnm-util/nm-setting-8021x.c
+++ b/libnm-util/nm-setting-8021x.c
@@ -2878,8 +2878,8 @@ set_property (GObject *object, guint prop_id,
}
priv->ca_cert = set_cert_prop_helper (value, NM_SETTING_802_1X_CA_CERT, &error);
if (error) {
- g_warning ("Error setting certificate (invalid data): (%d) %s",
- error->code, error->message);
+ g_warning ("Error setting certificate (invalid data): %s",
+ error->message);
g_error_free (error);
}
break;
@@ -2902,8 +2902,8 @@ set_property (GObject *object, guint prop_id,
}
priv->client_cert = set_cert_prop_helper (value, NM_SETTING_802_1X_CLIENT_CERT, &error);
if (error) {
- g_warning ("Error setting certificate (invalid data): (%d) %s",
- error->code, error->message);
+ g_warning ("Error setting certificate (invalid data): %s",
+ error->message);
g_error_free (error);
}
break;
@@ -2934,8 +2934,8 @@ set_property (GObject *object, guint prop_id,
}
priv->phase2_ca_cert = set_cert_prop_helper (value, NM_SETTING_802_1X_PHASE2_CA_CERT, &error);
if (error) {
- g_warning ("Error setting certificate (invalid data): (%d) %s",
- error->code, error->message);
+ g_warning ("Error setting certificate (invalid data): %s",
+ error->message);
g_error_free (error);
}
break;
@@ -2958,8 +2958,8 @@ set_property (GObject *object, guint prop_id,
}
priv->phase2_client_cert = set_cert_prop_helper (value, NM_SETTING_802_1X_PHASE2_CLIENT_CERT, &error);
if (error) {
- g_warning ("Error setting certificate (invalid data): (%d) %s",
- error->code, error->message);
+ g_warning ("Error setting certificate (invalid data): %s",
+ error->message);
g_error_free (error);
}
break;
@@ -2985,8 +2985,8 @@ set_property (GObject *object, guint prop_id,
}
priv->private_key = set_cert_prop_helper (value, NM_SETTING_802_1X_PRIVATE_KEY, &error);
if (error) {
- g_warning ("Error setting private key (invalid data): (%d) %s",
- error->code, error->message);
+ g_warning ("Error setting private key (invalid data): %s",
+ error->message);
g_error_free (error);
}
break;
@@ -3004,8 +3004,8 @@ set_property (GObject *object, guint prop_id,
}
priv->phase2_private_key = set_cert_prop_helper (value, NM_SETTING_802_1X_PHASE2_PRIVATE_KEY, &error);
if (error) {
- g_warning ("Error setting private key (invalid data): (%d) %s",
- error->code, error->message);
+ g_warning ("Error setting private key (invalid data): %s",
+ error->message);
g_error_free (error);
}
break;
@@ -3726,8 +3726,8 @@ nm_setting_802_1x_class_init (NMSetting8021xClass *setting_class)
/* Initialize crypto lbrary. */
if (!nm_utils_init (&error)) {
- g_warning ("Couldn't initilize nm-utils/crypto system: %d %s",
- error->code, error->message);
+ g_warning ("Couldn't initilize nm-utils/crypto system: %s",
+ error->message);
g_error_free (error);
}
}