removed log messages from process usage info APIs 23/51723/1 accepted/tizen/mobile/20151113.060811 accepted/tizen/tv/20151113.060829 accepted/tizen/wearable/20151113.060840 submit/tizen/20151113.044914 submit/tizen_common/20151229.142028 submit/tizen_common/20151229.144031 submit/tizen_common/20151229.154718
authorPrajwal A N <an.prajwal@samsung.com>
Fri, 13 Nov 2015 03:16:10 +0000 (12:16 +0900)
committerPrajwal A N <an.prajwal@samsung.com>
Fri, 13 Nov 2015 04:22:13 +0000 (13:22 +0900)
* process usage info received from resourced was logged for debug purposes
* this poses a security issue
* thus removed the logging code

Change-Id: I937a5809b3ba3cf3255d8be0a3c9476f9e50d59c
Signed-off-by: Prajwal A N <an.prajwal@samsung.com>
src/runtime_info_usage.c

index 78496eb..87f6c04 100644 (file)
@@ -273,10 +273,6 @@ API int runtime_info_get_process_memory_info(int *pid, int size, process_memory_
                dbus_message_iter_get_basic(&iter_struct, &value);
                proc_info->private_dirty = value;
 
-               _D("Index %d: Process %d, vsz %d, rss %d, pss %d, sh_clean %d, sh_dirty %d, pr_clean %d, pr_dirty %d",
-                              index, pid[index], proc_info->vsz, proc_info->rss, proc_info->pss,
-                              proc_info->shared_clean, proc_info->shared_dirty,
-                              proc_info->private_clean, proc_info->private_dirty);
                dbus_message_iter_next(&iter_array);
        }
 
@@ -385,8 +381,6 @@ API int runtime_info_get_process_cpu_usage(int *pid, int size, process_cpu_usage
                dbus_message_iter_get_basic(&iter_struct, &value);
                proc_usage->stime = value;
 
-               _D("Index %d: Process %d, utime %d, stime %d", index, pid[index],
-                               proc_usage->utime, proc_usage->stime);
                dbus_message_iter_next(&iter_array);
        }