Fix dlog format 84/194784/1
authorjusung son <jusung07.son@samsung.com>
Fri, 7 Dec 2018 07:18:52 +0000 (16:18 +0900)
committerjusung son <jusung07.son@samsung.com>
Fri, 7 Dec 2018 07:18:52 +0000 (16:18 +0900)
Change-Id: Ie3f18e546c61620fea1b7ea1f12d61b69d609a9e
Signed-off-by: jusung son <jusung07.son@samsung.com>
src/data_control_internal.c

index eb548b6a2fd1af48ca2a1119d7bc6e438007d87a..e8cd310d49bab24d7c92af6418a2f62a1427f275 100755 (executable)
@@ -1407,7 +1407,7 @@ int _write_socket(int fd, void *buffer, unsigned int nbytes,
        *bytes_write = 0;
        while (left && (retry_cnt < MAX_RETRY)) {
                nb = write(fd, buffer, left);
-               _LOGD("from %d: nb %d left %d", fd, nb, left - nb);
+               _LOGD("from %d: nb %zu left %zu", fd, nb, left - nb);
 
                if (nb == -1) {
                        if (errno == EINTR || errno == EAGAIN || errno == EWOULDBLOCK) {
@@ -1444,9 +1444,9 @@ int _read_socket(int fd, char *buffer, unsigned int nbytes,
        *bytes_read = 0;
        while (left && (retry_cnt < MAX_RETRY)) {
                nb = read(fd, buffer, left);
-               _LOGD("from %d: nb %d left %d", fd, nb, left - nb);
+               _LOGD("from %d: nb %zu left %zu", fd, nb, left - nb);
                if (nb == 0) {
-                       _LOGE("read EOF, socket closed %d: nb %d errno %d", fd, nb, errno);
+                       _LOGE("read EOF, socket closed %d: nb %zu errno %d", fd, nb, errno);
                        return DATA_CONTROL_ERROR_IO_ERROR;
                } else if (nb == -1) {
                        if (errno == EINTR || errno == EAGAIN || errno == EWOULDBLOCK) {