Fix log messages 15/267815/1
authorHwankyu Jhun <h.jhun@samsung.com>
Fri, 10 Dec 2021 05:41:14 +0000 (14:41 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Fri, 10 Dec 2021 05:41:14 +0000 (14:41 +0900)
While getting the app dead event from AMD, the instance ID is always
nullptr.

Change-Id: I8a7ed50e0cfedfeed5fd39c0446c9fcf4bea0a34
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/widget_instance.c

index a63881a0ff4b322944bacbded33b79d8d9994e78..ec524b300c277496e4cd06e683afb9e070a2e40d 100644 (file)
@@ -762,9 +762,9 @@ static int __status_handler(const char *endpoint, aul_app_com_result_e e, bundle
 
        if (*status == AUL_WIDGET_LIFE_CYCLE_EVENT_APP_DEAD &&
                        is_faulted && !strcmp(is_faulted, "true")) {
-               LOGW("handle dead widget instances, %s", instance_id);
+               LOGW("handle dead widget(%s) instances", widget_id);
                aul_widget_write_log(LOG_TAG, "[%s:%d] %s sender(%d)",
-                       __FUNCTION__, __LINE__, instance_id, sender_pid);
+                       __FUNCTION__, __LINE__, widget_id, sender_pid);
                __fault_handler(sender_pid);
        }