Fix invalid log format 38/133538/1
authorHwankyu Jhun <h.jhun@samsung.com>
Mon, 12 Jun 2017 22:40:50 +0000 (07:40 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Mon, 12 Jun 2017 22:40:50 +0000 (07:40 +0900)
Change-Id: I91bd4d70d2bb5b96eefff101383d61ddd2b1d169
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/data-control-map.c
src/data-control-provider.c
src/data-control-sql.c

index 944bd0f..f3313e1 100755 (executable)
@@ -948,7 +948,7 @@ int datacontrol_map_set(datacontrol_h provider, const char *key, const char *old
 
 int datacontrol_map_add_bulk_data(datacontrol_h provider, data_control_bulk_data_h bulk_data_h, int *request_id)
 {
-       long long arg_size = 0;
+       unsigned int arg_size = 0;
        bundle *b;
        bundle *data;
        const char *arg_list[3];
index 6bd39d4..dbd9794 100755 (executable)
@@ -412,7 +412,7 @@ static int __send_select_result(int fd, bundle *b, void *data)
                                free(buf);
 
                        }
-                       LOGI("row_count ~~~~ %d", row_count);
+                       LOGI("row_count ~~~~ %lld", row_count);
 
                }
 
index 3f5ee68..477fcc1 100755 (executable)
@@ -520,7 +520,7 @@ static int __recv_sql_select_process(bundle *kb, int fd, resultset_cursor *curso
        }
 
        if (row_count < 0 || row_count > MAX_ROW_COUNT) {
-               LOGE("invalid row_count %d", row_count);
+               LOGE("invalid row_count %lld", row_count);
                retval = DATACONTROL_ERROR_IO_ERROR;
                goto out;
        }
@@ -542,7 +542,8 @@ static int __recv_sql_select_process(bundle *kb, int fd, resultset_cursor *curso
        cursor->row_offset_list[0] = lseek(result_fd, 0, SEEK_CUR);
        cursor->resultset_content_offset = cursor->row_offset_list[0];
 
-       LOGE("resultset_content_offset : %d", cursor->resultset_content_offset);
+       LOGE("resultset_content_offset : %lld",
+                       (unsigned long long)cursor->resultset_content_offset);
 
        off_t row_offset = 0;
        for (i = 0; i < row_count; i++) {