Adds variable to debug monitoring list 91/96091/1
authorseungha.son <seungha.son@samsung.com>
Mon, 7 Nov 2016 23:39:40 +0000 (08:39 +0900)
committerseungha.son <seungha.son@samsung.com>
Mon, 7 Nov 2016 23:43:21 +0000 (08:43 +0900)
Signed-off-by: seungha.son <seungha.son@samsung.com>
Change-Id: I7e7c3186d30b6d0561ed494d7e9fb4c566601344

src/service_common.c

index 63f0ad1..92014dc 100755 (executable)
@@ -155,6 +155,7 @@ int send_notify(GVariant *body, char *cmd, GList *monitoring_app_list, char *int
        GError *err = NULL;
        GList *target_list;
        char *target_bus_name;
+       int monitoring_count = 0;
 
        target_list = g_list_first(monitoring_app_list);
        for (; target_list != NULL; target_list = target_list->next) {
@@ -181,10 +182,11 @@ int send_notify(GVariant *body, char *cmd, GList *monitoring_app_list, char *int
                        }
                        return SERVICE_COMMON_ERROR_IO_ERROR;
                }
+               monitoring_count++;
                DbgPrint("signal send done: %s", target_bus_name);
        }
 
-       DbgPrint("provider _send_notify cmd %s done", cmd);
+       DbgPrint("provider _send_notify cmd : [%s], monitoring count : [%d] done", cmd, monitoring_count);
        return SERVICE_COMMON_ERROR_NONE;
 }