Fix build warnings with -Wformat 12/190612/2
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Thu, 4 Oct 2018 06:22:50 +0000 (15:22 +0900)
committerDongwoo Lee <dwoo08.lee@samsung.com>
Thu, 4 Oct 2018 08:51:42 +0000 (08:51 +0000)
There are build warnings with -Wformat for printing format for
size_t and ssize_t. Fix the build warnings with profer formats.

Change-Id: I82f50c8541b9bc4ffba36f01b0c84eb89e04c12b
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
src/thor.c

index f12dfc3..5757d56 100644 (file)
@@ -329,7 +329,7 @@ int thor_process(struct tfm_context *ctx)
                n = thor_rx_data(conn, &rqt, RQT_PKT_SIZE);
                if (n < sizeof(rqt)) {
                        fprintf(stderr,
-                               "Failed to receive data from the host(%ld:%ld)",
+                               "Failed to receive data from the host(%zd:%zu)",
                                n, RQT_PKT_SIZE);
                        return -EIO;
                }