Fix dlog format error
[apps/native/ug-mobile-ap.git] / src / mh_common_utility.c
index b94a65a..f12206d 100644 (file)
@@ -3,7 +3,7 @@
 *
 * Copyright 2012  Samsung Electronics Co., Ltd
 
-* Licensed under the Flora License, Version 1.0 (the "License");
+* Licensed under the Flora License, Version 1.1 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 
@@ -285,7 +285,7 @@ void _handle_usb_status_change(keynode_t *key, void *data)
        if (vconf_key == SETTING_USB_NONE_MODE)
                return;
 
-       if (vconf_key != VCONFKEY_SYSMAN_USB_AVAILABLE) {
+       if (vconf_key == VCONFKEY_SYSMAN_USB_DISCONNECTED) {
                if (ad->type == TETHERING_TYPE_USB && ad->popup) {
                        evas_object_del(ad->popup);
                        ad->popup = NULL;
@@ -559,7 +559,7 @@ connection_cellular_state_e _get_cellular_state(void)
        }
        ret = connection_get_cellular_state(handle, &cellular_state);
        if (ret != CONNECTION_ERROR_NONE) {
-               ERR("connection_get_cellular_state() is failed : %d\n");
+               ERR("connection_get_cellular_state() is failed : %d\n", ret);
                connection_destroy(handle);
                return CONNECTION_CELLULAR_STATE_OUT_OF_SERVICE;
        }
@@ -630,43 +630,3 @@ bool _get_vconf_prev_wifi_state()
 
        return value ? true : false;
 }
-
-int _send_signal_qp(const char *cmd)
-{
-       DBG("+\n");
-
-       if (cmd == NULL) {
-               ERR("Invalid param");
-               return -1;
-       }
-
-       GDBusConnection *conn = NULL;
-       int ret = 0;
-       GVariant *message = NULL;
-       GError *err = NULL;
-
-       DBG("Sent dbus signal : %s\n", cmd);
-
-       conn = g_bus_get_sync(DBUS_BUS_SYSTEM, NULL, &err);
-       if (err != NULL) {
-               ERR("Failed connection to system bus[%s]", err->message);
-               g_error_free(err);
-               err = NULL;
-               return -1;
-       }
-       message = g_variant_new("(ss)", "wifi_hotspot", cmd);
-       g_dbus_connection_emit_signal(conn, NULL, "/Org/Tizen/Quickpanel",
-                       "org.tizen.quickpanel", "ACTIVITY", message, &err);
-       if (err) {
-               ERR("g_dbus_connection_emit_signal is failed and error is %s\n", err->message);
-               g_error_free(err);
-               ret = -1;
-       }
-       g_variant_unref(message);
-
-       if (conn)
-               g_object_unref(conn);
-
-       DBG("-\n");
-       return ret;
-}