From 2101c61996593e3ecd8a0d6d0339921b9a06943b Mon Sep 17 00:00:00 2001 From: "jiyong.min" Date: Fri, 7 Dec 2018 13:42:39 +0900 Subject: [PATCH] Fix format error in logs Change-Id: Ia8517e01f40e59fe4c234b0c354a9181fb486b92 --- gif/mm_util_gif.c | 2 +- imgp/mm_util_imgp.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gif/mm_util_gif.c b/gif/mm_util_gif.c index 1027381..b70534e 100644 --- a/gif/mm_util_gif.c +++ b/gif/mm_util_gif.c @@ -454,7 +454,7 @@ int _gif_encode_move_to_mem(const unsigned char *src, size_t src_size, void **ds mm_util_retvm_if(src == NULL || dst == NULL || dst_size == NULL, MM_UTIL_ERROR_INVALID_PARAMETER, "Invalid parameter"); mm_util_retvm_if(src_size == 0, MM_UTIL_ERROR_INVALID_PARAMETER, "Invalid parameter"); - mm_util_debug("src_size: %u", src_size); + mm_util_debug("src_size: %zu", src_size); buffer = (unsigned char *)calloc(1, src_size); mm_util_retvm_if(buffer == NULL, MM_UTIL_ERROR_OUT_OF_MEMORY, "memory allocation failed"); diff --git a/imgp/mm_util_imgp.c b/imgp/mm_util_imgp.c index bc325be..556ef3b 100755 --- a/imgp/mm_util_imgp.c +++ b/imgp/mm_util_imgp.c @@ -271,7 +271,7 @@ static int __mm_util_get_crop_image_size(mm_util_color_format_e format, unsigned return MM_UTIL_ERROR_NOT_SUPPORTED_FORMAT; } - mm_util_debug("format: %d, *imgsize: %d", format, *imgsize); + mm_util_debug("format: %d, *imgsize: %zu", format, *imgsize); return ret; } @@ -934,7 +934,7 @@ int mm_util_get_image_size(mm_util_color_format_e format, unsigned int width, un return MM_UTIL_ERROR_NOT_SUPPORTED_FORMAT; } - mm_util_debug("format: %u, *imgsize: %u", format, *imgsize); + mm_util_debug("format: %u, *imgsize: %zu", format, *imgsize); return ret; } -- 2.7.4