Fixed error in get_device_by_mac API
authorAtul Rai <a.rai@samsung.com>
Thu, 24 Jan 2019 04:17:49 +0000 (09:47 +0530)
committer김새롬/Tizen Platform Lab(SR)/Staff Engineer/삼성전자 <saerome.kim@samsung.com>
Thu, 24 Jan 2019 05:32:49 +0000 (14:32 +0900)
Signed-off-by: Atul Rai <a.rai@samsung.com>
ua-daemon/src/pm/ua-power-plugin-manager.c
ua-daemon/src/ua-manager-core.c

index 4d6208a..2d48b07 100644 (file)
@@ -205,6 +205,7 @@ static void __attribute__((constructor)) _uam_ppm_init(void)
 
        ret = __init_power_plugin();
        ret_if(UAM_ERROR_NONE != ret);
+       UAM_INFO_C("__init_power_plugin done");
 
        FUNC_EXIT;
 }
index ed0f9ed..d23627e 100644 (file)
@@ -405,7 +405,7 @@ static int __copy_tech_info_to_device_info(uam_db_tech_info_t *tech, uam_device_
        FUNC_ENTRY;
        GSList *l;
 
-       retv_if(NULL != tech, UAM_ERROR_INVALID_PARAM);
+       retv_if(NULL == tech, UAM_ERROR_INVALID_PARAM);
 
        memset(device, 0x00, sizeof(uam_device_info_t));
        for (l = tech->addresses; NULL != l; l = g_slist_next(l)) {