From: jy910.yun Date: Fri, 10 May 2013 07:40:36 +0000 (+0900) Subject: rearrange wrong error log and delete redundant log regarding deviced library X-Git-Tag: submit/tizen_ivi_release/20140401.030119~79 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4a5bfd1e2b34c5d3b29c06b6763578d8f0cf6e61;p=platform%2Fcore%2Fsystem%2Fsystem-server.git rearrange wrong error log and delete redundant log regarding deviced library Change-Id: I8deabb118e03cd3058920619c3054d62562c5a91 Signed-off-by: jy910.yun --- diff --git a/src/shared/deviced-conf.c b/src/shared/deviced-conf.c index 97ed181..dafc978 100644 --- a/src/shared/deviced-conf.c +++ b/src/shared/deviced-conf.c @@ -63,8 +63,7 @@ int util_process_group_set(const char* name, int pid) } snprintf(buf, sizeof(buf), "%d", pid); - _E("pid(%d) is inserted at vip", pid); - + _D("pid(%d) is inserted at vip", pid); return deviced_call_predef_action(PROCESS_GROUP_SET, 2, buf, name); } @@ -128,7 +127,7 @@ static int copy_cmdline(int pid) fd = open(filepath, O_RDONLY); if (fd == -1) { - _D("Failed to open"); + _E("Failed to open"); return -1; } @@ -137,7 +136,7 @@ static int copy_cmdline(int pid) if (cnt <= 0) { /* Read /proc//cmdline error */ - _D("Failed to read"); + _E("Failed to read"); return -1; } @@ -145,17 +144,17 @@ static int copy_cmdline(int pid) fd = open(filepath, O_CREAT | O_WRONLY, 0644); if (fd == -1) { - _D("Failed to open"); + _E("Failed to open"); return -1; } if (write(fd, buf, cnt) == -1) { - _D("Failed to write"); + _E("Failed to write"); close(fd); return -1; } - close(fd); + close(fd); return 0; } diff --git a/src/shared/deviced-noti.c b/src/shared/deviced-noti.c index 41d0702..20d6841 100644 --- a/src/shared/deviced-noti.c +++ b/src/shared/deviced-noti.c @@ -92,7 +92,7 @@ static int deviced_noti_send(struct sysnoti *msg) client_sockfd = socket(AF_UNIX, SOCK_STREAM, 0); if (client_sockfd == -1) { - _E("%s: socket create failed\n", __FUNCTION__); + _E("socket create failed"); return -1; } bzero(&clientaddr, sizeof(clientaddr)); @@ -102,7 +102,7 @@ static int deviced_noti_send(struct sysnoti *msg) if (connect(client_sockfd, (struct sockaddr *)&clientaddr, client_len) < 0) { - _E("%s: connect failed\n", __FUNCTION__); + _E("connect failed"); close(client_sockfd); return -1; } diff --git a/src/shared/deviced-util.c b/src/shared/deviced-util.c index ddc8d87..7fb3a2b 100644 --- a/src/shared/deviced-util.c +++ b/src/shared/deviced-util.c @@ -129,4 +129,3 @@ API int deviced_get_apppath(pid_t pid, char *app_path, size_t app_path_size) app_path[ret] = '\0'; return 0; } - diff --git a/src/shared/display.c b/src/shared/display.c index 7723432..db1e915 100644 --- a/src/shared/display.c +++ b/src/shared/display.c @@ -97,7 +97,7 @@ API int display_set_brightness_with_setting(int val) } if (val == DISPLAY_DIM_BRIGHTNESS) { - _D("application can not set this value(DIM VALUE:%d)", val); + _E("application can not set this value(DIM VALUE:%d)", val); errno = EPERM; return -errno; } @@ -134,7 +134,7 @@ API int display_set_brightness(int val) } if (val == DISPLAY_DIM_BRIGHTNESS) { - _D("application can not set this value(DIM VALUE:%d)", val); + _E("application can not set this value(DIM VALUE:%d)", val); errno = EPERM; return -errno; }