Fix format-truncation warning for gcc9
[apps/native/ug-mobile-ap.git] / src / mh_func_onoff.c
index e6d8caf..c288559 100644 (file)
@@ -110,7 +110,6 @@ gboolean _ps_recheck_timeout_cb(gpointer data)
                                recheck_count = 0;
                                return FALSE;
                        }
-               _send_signal_qp(QP_SIGNAL_PROGRESS_ON);
                } else if (ad->type == TETHERING_TYPE_BT && _create_bt_tethering_on_popup(ad) < 0) {
                                ERR("_create_bt_tethering_on_popup fail\n");
                                _update_tethering_item(ad, MH_STATE_NONE);
@@ -148,7 +147,7 @@ static bool __is_connected_wifi_net(mh_appdata_t *ad)
 
        ret = connection_get_wifi_state(ad->conn_handle, &wifi_state);
        if (ret != CONNECTION_ERROR_NONE) {
-               ERR("connection_get_wifi_state() is failed : %d\n");
+               ERR("connection_get_wifi_state() is failed : %d\n", ret);
                return false;
        }
 
@@ -168,7 +167,7 @@ static bool __is_connected_ethernet_net(mh_appdata_t *ad)
 
        ret = connection_get_ethernet_state(ad->conn_handle, &ethernet_state);
        if (ret != CONNECTION_ERROR_NONE) {
-               ERR("connection_get_ethernet_state() is failed : %d\n");
+               ERR("connection_get_ethernet_state() is failed : %d\n", ret);
                return false;
        }
 
@@ -666,7 +665,6 @@ int _handle_wifi_onoff_change(mh_appdata_t *ad)
                                return -1;
                        }
 #endif
-                       _send_signal_qp(QP_SIGNAL_PROGRESS_OFF);
                }
                return 0;
        }