[network-manager-netbook/MplPanelClient] Remove debug spew



commit b8d5ee4ded5fb6bd66af16af9d2031f2be77bc7c
Author: Tambet Ingo <tambet gmail com>
Date:   Wed Dec 2 14:55:54 2009 +0200

    Remove debug spew

 libnm-gtk/nm-connection-item.c |    1 -
 libnm-gtk/nm-connection-list.c |   13 -------------
 libnm-gtk/nm-device-handler.c  |    4 ----
 libnm-gtk/nm-device-provider.c |    2 --
 libnm-gtk/nm-item-provider.c   |    5 -----
 libnm-gtk/nm-wifi-provider.c   |    2 --
 src/nmn-new-connection.c       |    4 ++--
 7 files changed, 2 insertions(+), 29 deletions(-)
---
diff --git a/libnm-gtk/nm-connection-item.c b/libnm-gtk/nm-connection-item.c
index 906881f..3c123ad 100644
--- a/libnm-gtk/nm-connection-item.c
+++ b/libnm-gtk/nm-connection-item.c
@@ -70,7 +70,6 @@ static void
 connection_removed (NMSettingsConnectionInterface *connection,
                     gpointer data)
 {
-    g_debug ("Connection %p removed", connection);
     nm_connection_item_set_connection (NM_CONNECTION_ITEM (data), NULL);
 }
 
diff --git a/libnm-gtk/nm-connection-list.c b/libnm-gtk/nm-connection-list.c
index 29065d1..0db5a7b 100644
--- a/libnm-gtk/nm-connection-list.c
+++ b/libnm-gtk/nm-connection-list.c
@@ -54,14 +54,12 @@ connection_updated (NMSettingsConnectionInterface *connection,
                     GHashTable *new_settings,
                     gpointer data)
 {
-    g_debug ("Connection %p updated", connection);
 }
 
 static void
 connection_removed (NMSettingsConnectionInterface *connection,
                     gpointer data)
 {
-    g_debug ("Connection %p removed", connection);
     g_signal_handlers_disconnect_matched (connection, G_SIGNAL_MATCH_DATA,
                                           0, 0, NULL, NULL, data);
 }
@@ -71,8 +69,6 @@ connection_added (NMSettingsInterface *settings,
                   NMSettingsConnectionInterface *connection,
                   gpointer data)
 {
-    g_debug ("Connection %p added", connection);
-
     g_signal_connect (connection, "updated", G_CALLBACK (connection_updated), data);
     g_signal_connect (connection, "removed", G_CALLBACK (connection_removed), data);
 }
@@ -83,8 +79,6 @@ connection_handling_cleanup (NMConnectionList *self)
     NMConnectionListPrivate *priv = GET_PRIVATE (self);
     GSList *iter;
 
-    g_debug ("Cleaning up settings");
-
     for (iter = priv->settings; iter; iter = iter->next) {
         NMSettingsInterface *settings = NM_SETTINGS_INTERFACE (iter->data);
         GSList *connections;
@@ -112,7 +106,6 @@ device_state_changed (NMDevice *device,
                       NMDeviceState old_state,
                       NMDeviceStateReason reason)
 {
-    g_debug ("device state %s changed (%d)", nm_device_get_iface (device), new_state);
 }
 
 static void
@@ -120,8 +113,6 @@ device_added (NMClient *client,
               NMDevice *device,
               gpointer user_data)
 {
-    g_debug ("device %s added", nm_device_get_iface (device));
-
     g_signal_connect (device, "state-changed", G_CALLBACK (device_state_changed), user_data);
 }
 
@@ -130,8 +121,6 @@ device_removed (NMClient *client,
                 NMDevice *device,
                 gpointer user_data)
 {
-    g_debug ("device %s removed", nm_device_get_iface (device));
-
     g_signal_handlers_disconnect_matched (device, G_SIGNAL_MATCH_DATA,
                                           0, 0, NULL, NULL, user_data);
 }
@@ -158,8 +147,6 @@ device_handling_cleanup (NMConnectionList *self)
     const GPtrArray *devices;
     int i;
 
-    g_debug ("Cleaning up devices");
-
     g_signal_handlers_disconnect_matched (priv->client, G_SIGNAL_MATCH_DATA,
                                           0, 0, NULL, NULL, self);
 
diff --git a/libnm-gtk/nm-device-handler.c b/libnm-gtk/nm-device-handler.c
index 167b9fc..31fba3f 100644
--- a/libnm-gtk/nm-device-handler.c
+++ b/libnm-gtk/nm-device-handler.c
@@ -108,8 +108,6 @@ device_added (NMClient *client,
     NMDeviceHandlerPrivate *priv = GET_PRIVATE (self);
     NMItemProvider *provider;
 
-    g_debug ("device %s added", nm_device_get_iface (device));
-
     provider = create_provider (self, device);
     if (provider) {
         priv->providers = g_slist_prepend (priv->providers, provider);
@@ -126,8 +124,6 @@ device_removed (NMClient *client,
     NMDeviceHandlerPrivate *priv = GET_PRIVATE (self);
     GSList *iter;
 
-    g_debug ("device %s removed", nm_device_get_iface (device));
-
     for (iter = priv->providers; iter; iter = iter->next) {
         NMDeviceProvider *provider = (NMDeviceProvider *) iter->data;
 
diff --git a/libnm-gtk/nm-device-provider.c b/libnm-gtk/nm-device-provider.c
index 54eb31e..67f4743 100644
--- a/libnm-gtk/nm-device-provider.c
+++ b/libnm-gtk/nm-device-provider.c
@@ -62,8 +62,6 @@ device_state_changed (NMDevice *device,
 {
     NMDeviceProvider *self = NM_DEVICE_PROVIDER (user_data);
 
-    g_debug ("device state %s changed (%d)", nm_device_get_iface (device), new_state);
-
     if (old_state < NM_DEVICE_STATE_DISCONNECTED && new_state >= NM_DEVICE_STATE_DISCONNECTED)
         /* Device became usable */
         nm_item_provider_reset (NM_ITEM_PROVIDER (self));
diff --git a/libnm-gtk/nm-item-provider.c b/libnm-gtk/nm-item-provider.c
index 80bb2e4..21e7bb9 100644
--- a/libnm-gtk/nm-item-provider.c
+++ b/libnm-gtk/nm-item-provider.c
@@ -101,11 +101,6 @@ connection_added (NMSettingsInterface *settings,
                   gpointer data)
 {
     NMItemProvider *self = NM_ITEM_PROVIDER (data);
-    NMSettingConnection *s_con;
-
-    s_con = (NMSettingConnection *) nm_connection_get_setting (NM_CONNECTION (connection), NM_TYPE_SETTING_CONNECTION);
-    g_debug ("Connection '%s' (%d) added", nm_setting_connection_get_id (s_con),
-             nm_connection_get_scope (NM_CONNECTION (connection)));
 
     if (NM_ITEM_PROVIDER_GET_CLASS (self)->connection_added)
         NM_ITEM_PROVIDER_GET_CLASS (self)->connection_added (self, connection);
diff --git a/libnm-gtk/nm-wifi-provider.c b/libnm-gtk/nm-wifi-provider.c
index 6a60704..8c2d9ba 100644
--- a/libnm-gtk/nm-wifi-provider.c
+++ b/libnm-gtk/nm-wifi-provider.c
@@ -82,7 +82,6 @@ wifi_added (NMItemProvider *provider,
 
         ap = nm_wifi_item_get_ap (NM_WIFI_ITEM (item));
         if (utils_connection_valid_for_device (NM_CONNECTION (connection), NM_DEVICE (device), ap)) {
-            g_debug ("Found connection for item %s", nm_list_item_get_name (item));
             g_object_set (item, NM_CONNECTION_ITEM_CONNECTION, connection, NULL);
             return;
         }
@@ -99,7 +98,6 @@ wifi_added (NMItemProvider *provider,
         if (utils_connection_valid_for_device (NM_CONNECTION (connection), NM_DEVICE (device), ap)) {
             NMListItem *item;
 
-            g_debug ("Created new item for connection");
             item = nm_wifi_item_new (nm_item_provider_get_client (provider), device, ap, connection);
             nm_item_provider_item_added (provider, item);
             break;
diff --git a/src/nmn-new-connection.c b/src/nmn-new-connection.c
index 4d32b35..febb291 100644
--- a/src/nmn-new-connection.c
+++ b/src/nmn-new-connection.c
@@ -89,8 +89,8 @@ connect_cb (gpointer user_data,
             GError *error)
 {
     /* FIXME: Report the error somewhere */
-    g_debug ("connect_cb: %s %s", object_path,
-             error ? error->message : "success");
+    g_warning ("connect_cb: %s %s", object_path,
+               error ? error->message : "success");
 }
 
 static void



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]