[UTC][app-manager][Non-ACR][Fix wrong if statement] 18/225018/1
authorHwankyu Jhun <h.jhun@samsung.com>
Sun, 16 Feb 2020 22:59:58 +0000 (07:59 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Sun, 16 Feb 2020 22:59:58 +0000 (07:59 +0900)
Change-Id: I98459b6c92003b63ee380bbd725f3bc70e3e2cd5
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/utc/app-manager/utc-app-manager.c

index 8ea99d73aede9f9ccd2c27b1edf5f226256db989..d1f79c629075c00f6c6b7da732ef0d46a7e738fb 100755 (executable)
@@ -2811,10 +2811,12 @@ int utc_app_manager_request_terminate_bg_app_n(void)
 
 static gboolean unset_app_context_event_cb(gpointer user_data)
 {
-       dlog_print(DLOG_INFO, "NativeTCT", "START");
+       dlog_print(DLOG_INFO, "NativeTCT", "%s(%d) START",
+                       __FUNCTION__, __LINE__);
        app_manager_unset_app_context_event_cb();
        normal_exit(0);
-       dlog_print(DLOG_INFO, "NativeTCT", "END");
+       dlog_print(DLOG_INFO, "NativeTCT", "%s(%d) END",
+                       __FUNCTION__, __LINE__);
 
        return FALSE;
 }
@@ -2824,7 +2826,8 @@ static void app_context_event_cb(app_context_h app_context, app_context_event_e
        char *str = (char *)user_data;
        bool touched = false;
 
-       dlog_print(DLOG_INFO, "NativeTCT", "START");
+       dlog_print(DLOG_INFO, "NativeTCT", "%s(%d) START",
+                       __FUNCTION__, __LINE__);
        if (str == NULL) {
                normal_exit(1);
                return;
@@ -2834,7 +2837,7 @@ static void app_context_event_cb(app_context_h app_context, app_context_event_e
                if (!strcmp(str, "launched"))
                        touched = true;
        } else if (event == APP_CONTEXT_EVENT_TERMINATED) {
-               if (!strcmp(str, "terminate"))
+               if (!strcmp(str, "terminated"))
                        touched = true;
        }
 
@@ -2844,7 +2847,8 @@ static void app_context_event_cb(app_context_h app_context, app_context_event_e
                g_idle_add(unset_app_context_event_cb, NULL);
        }
 
-       dlog_print(DLOG_INFO, "NativeTCT", "END");
+       dlog_print(DLOG_INFO, "NativeTCT", "%s(%d) END",
+                       __FUNCTION__, __LINE__);
 }
 
 /**