Fix wrong log format 11/137611/1
authorHyunho Kang <hhstark.kang@samsung.com>
Fri, 7 Jul 2017 01:04:59 +0000 (10:04 +0900)
committerHyunho Kang <hhstark.kang@samsung.com>
Fri, 7 Jul 2017 01:06:49 +0000 (10:06 +0900)
Change-Id: I56f1af732ce28d4f640f5f0cc743b0cffcd5a376
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
src/data_control_internal.c

index 4b9343f..4ebac50 100755 (executable)
@@ -386,7 +386,7 @@ static int __recv_sql_select_process(bundle *kb, int fd,
                        getuid(), DATACONTROL_REQUEST_FILE_PREFIX,
                        (char *)bundle_get_val(kb, AUL_K_CALLER_APPID), req_id);
        if (size < 0) {
-               _LOGE("unable to write formatted output to select_map_file.     errno = %d", errno);
+               _LOGE("unable to write formatted output to select_map_file. errno = %d", errno);
                retval = DATA_CONTROL_ERROR_IO_ERROR;
                goto out;
        }
@@ -598,7 +598,7 @@ static int __recv_sql_select_process(bundle *kb, int fd,
                                        retval = DATA_CONTROL_ERROR_IO_ERROR;
                                        goto out;
                                }
-                               _LOGE("value : %s", value);
+                               _LOGE("value : %s", (char *)value);
                                if (write(result_fd, value, sizeof(void) * size) == -1) {
                                        _LOGE("Writing a value to a file descriptor is failed. errno = %d", errno);
                                        retval = DATA_CONTROL_ERROR_IO_ERROR;