[sample] annotate code for debugging
authorEunyoung Lee <ey928.lee@samsung.com>
Thu, 23 May 2019 02:15:28 +0000 (11:15 +0900)
committer이은영/Tizen Platform Lab(SR)/Engineer/삼성전자 <ey928.lee@samsung.com>
Mon, 27 May 2019 04:26:20 +0000 (13:26 +0900)
src/devicemanagerservice.c

index a9b077d..ac9ceaa 100644 (file)
@@ -38,7 +38,7 @@ static void __get_taskinfo(int duration, int period, unsigned long id, idm_resul
 static char *__make_sysinfo_request(void)
 {
        char *buff = NULL;
-       int size, count = 0;
+       int size = 0;
 
        FILE *fp = fopen("/home/owner/apps_rw/org.example.devicemanagerservice/res/sysinfoRequestTest.txt", "r");
        if (fp == NULL) {
@@ -52,7 +52,8 @@ static char *__make_sysinfo_request(void)
        fseek(fp, 0, SEEK_SET);
        fread(buff, size, 1, fp);
 
-       _D("%s size: %d, count: %d", buff, size, count);
+       // for debugging
+       //_D("%s size: %d", buff, size);
        fclose(fp);
 
        return buff;