Added lots of debugging messages
[mtetherd] / hal.c
diff --git a/hal.c b/hal.c
index de75d3a..c55fb5e 100644 (file)
--- a/hal.c
+++ b/hal.c
@@ -30,10 +30,10 @@ static void mtetherd_hal_device_condition(LibHalContext *ctx, const char *udi, c
        
        if (plugin) {
                g_log(MTETHERD_LOG_DOMAIN, G_LOG_LEVEL_MESSAGE, "Got HAL condition %s on %s: %s", condition, udi, detail);
-               //hildon_banner_show_informationf(GTK_WIDGET(plugin), NULL, "Got HAL condition %s on %s: %s", condition, udi, detail);
-               if (strcmp("ButtonPressed", condition) == 0) {
-                       if (strcmp(USBDEV_PATH, udi) == 0) {
-                               //mtetherd_status_plugin_usb_plugged_show(plugin);
+               if (g_strcmp0("ButtonPressed", condition) == 0) {
+                       g_log(MTETHERD_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, "is ButtonPressed");
+                       if (g_strcmp0(USBDEV_PATH, udi) == 0) {
+                               g_log(MTETHERD_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, "is %s", USBDEV_PATH);
                                mtetherd_status_plugin_usb_plugged(plugin);
                        }
                }
@@ -59,8 +59,6 @@ static void mtetherd_hal_device_added(LibHalContext *ctx, const char *udi) {
                        }
                        libhal_free_string(interface);
                }
-               //plugin->priv->net_on = TRUE;
-               //enable_button_set_text(plugin->priv->enable_button, plugin->priv->net_on);
        }
 }
 
@@ -70,8 +68,6 @@ static void mtetherd_hal_device_removed(LibHalContext *ctx, const char *udi) {
        if (plugin) {
                g_log(MTETHERD_LOG_DOMAIN, G_LOG_LEVEL_MESSAGE, "Got HAL device added on %s", udi);
                mtetherd_status_plugin_device_removed(plugin, udi);
-               //plugin->priv->net_on = FALSE;
-               //enable_button_set_text(plugin->priv->enable_button, plugin->priv->net_on);
        }
 }