Fix bug in dlog message format
[apps/native/ug-wifi-direct.git] / ug-wifidirect / src / wfd_client.c
index ce64950..3be0faf 100644 (file)
@@ -251,7 +251,7 @@ int wfd_mobile_ap_on(void *data)
        /* Register cbs */
        ret = tethering_set_enabled_cb(ugd->hotspot_handle, TETHERING_TYPE_WIFI, __enabled_cb, ugd);
        if (ret != TETHERING_ERROR_NONE) {
-               DBG(LOG_ERROR, "tethering_set_enabled_cb is failed\n", ret);
+               DBG(LOG_ERROR, "tethering_set_enabled_cb is failed [%d]\n", ret);
                return -1;
        }
 
@@ -289,7 +289,7 @@ int wfd_mobile_ap_off(void *data)
                /* Register cbs */
                ret = tethering_set_disabled_cb(ugd->hotspot_handle, TETHERING_TYPE_WIFI, __disabled_cb, ugd);
                if (ret != TETHERING_ERROR_NONE) {
-                       DBG(LOG_ERROR, "tethering_set_disabled_cb is failed\n", ret);
+                       DBG(LOG_ERROR, "tethering_set_disabled_cb is failed [%d] \n", ret);
                        return -1;
                }
                /* Disable tethering */