Logging time info 11/233211/2
authorhyunho <hhstark.kang@samsung.com>
Wed, 13 May 2020 05:16:54 +0000 (14:16 +0900)
committerhyunho <hhstark.kang@samsung.com>
Wed, 13 May 2020 05:57:45 +0000 (14:57 +0900)
Change-Id: I306c07bbd1e8794bd36d338ddf4941eb1fd36f9c
Signed-off-by: hyunho <hhstark.kang@samsung.com>
src/base/watch_base.c

index 43cb7de..62c63bf 100755 (executable)
@@ -751,12 +751,23 @@ static int __on_ui_base_terminate(void *data)
        return APP_ERROR_NONE;
 }
 
+static void __print_time_info(watch_base_time_h time_h)
+{
+       if (time_h == NULL) {
+               _E("time handle is null!");
+               return;
+       }
+       _W("%d-%d-%d %d:%d:%d:%d (%s), dst(%d)",
+                       time_h->year, time_h->month, time_h->day, time_h->hour24,
+                       time_h->minute, time_h->second, time_h->millisecond,
+                       time_h->timezone, time_h->indaylight);
+}
+
 static void __on_time_tick(void *watchtime, void *data)
 {
        watch_base_time_tick_cb time_tick_cb;
 
-       _I("_watch_base_signal_time_tick");
-
+       __print_time_info((watch_base_time_h)watchtime);
        time_tick_cb = __context.callback.time_tick;
 
        if (time_tick_cb != NULL)