Fix dlog format error
[apps/native/ug-mobile-ap.git] / src / mh_func_onoff.c
index b251f95..c288559 100644 (file)
@@ -147,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;
        }
 
@@ -167,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;
        }