Modify log to check the number of list 37/152337/1
authorMyungki Lee <mk5004.lee@samsung.com>
Tue, 26 Sep 2017 01:05:30 +0000 (10:05 +0900)
committerMyungki Lee <mk5004.lee@samsung.com>
Tue, 26 Sep 2017 01:05:30 +0000 (10:05 +0900)
Change-Id: Ie79641d41fdc8c87c1c175e7acbe2c183c4b3a78
Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
src/notification_service.c

index b901d92..1f0ae55 100755 (executable)
@@ -837,6 +837,7 @@ int notification_load_grouping_list(GVariant *parameters, GVariant **reply_body,
        notification_list_h list_iter;
        GVariantBuilder *builder;
        int count = 0;
+       int list_count = 0;
        uid_t param_uid;
 
        g_variant_get(parameters, "(iii)", &type, &count, &param_uid);
@@ -858,6 +859,7 @@ int notification_load_grouping_list(GVariant *parameters, GVariant **reply_body,
                        g_variant_builder_add(builder, "(v)", body);
 
                        list_iter = notification_list_get_next(list_iter);
+                       list_count++;
                } while (list_iter != NULL);
 
                notification_free_list(get_list);
@@ -871,7 +873,7 @@ int notification_load_grouping_list(GVariant *parameters, GVariant **reply_body,
                return NOTIFICATION_ERROR_OUT_OF_MEMORY;
        }
 
-       INFO("load type[%d], count[%d] ", type, count);
+       INFO("list type[%d], count[%d] ", type, list_count);
        return ret;
 }