From d04aa9d7d7541f984fc3a82d28d8be05edd4b28c Mon Sep 17 00:00:00 2001 From: hyunho Date: Fri, 28 Jun 2019 13:32:56 +0900 Subject: [PATCH] Writing a file log for widget app exit Change-Id: I976f3c07e32c1afa96d4d7c6444b8017e2c851c9 Signed-off-by: hyunho --- src/base/widget_base.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/base/widget_base.c b/src/base/widget_base.c index 71f41a2..c11f0af 100644 --- a/src/base/widget_base.c +++ b/src/base/widget_base.c @@ -758,14 +758,17 @@ static void __multiwindow_trim_memory(void *data) EXPORT_API int widget_base_exit(void) { - int ret; + int ret = 0; + int cnt; appcore_multiwindow_base_exit(); - if (appcore_multiwindow_base_instance_get_cnt() == 0 && __is_permanent) { + cnt = appcore_multiwindow_base_instance_get_cnt(); + if (cnt == 0 && __is_permanent) ret = aul_notify_exit(); - aul_widget_write_log(LOG_TAG, "[%s:%d] permanent exit : %d", - __FUNCTION__, __LINE__, ret); - } + + aul_widget_write_log(LOG_TAG, + "[%s:%d] exit : ret(%d), cnt(%d), permanent(%d)", + __FUNCTION__, __LINE__, ret, cnt, __is_permanent); return 0; } -- 2.7.4