From 17527817f7a2db3eb0f6b7b0eecaf939dc804e3a Mon Sep 17 00:00:00 2001 From: hj kim Date: Tue, 23 Jan 2018 10:59:32 +0900 Subject: [PATCH] change of debug msg format and update some debug msg Change-Id: I88da902696b4ba0222400f5d58e9d530f7c5d3b5 --- magick/mm_util_magick.c | 4 ++-- magick/test/mm_util_magick_testsuite.c | 4 ++-- packaging/libmm-utility.spec | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/magick/mm_util_magick.c b/magick/mm_util_magick.c index b552508..b22db46 100755 --- a/magick/mm_util_magick.c +++ b/magick/mm_util_magick.c @@ -160,7 +160,7 @@ static Image * __mm_util_resize_image(Image *image, unsigned int width, unsigned _processed_image = ResizeImage(image, width, height, DefaultResizeFilter, 1.0, &exception); if (_processed_image == NULL) { - mm_util_error("Error: Image processing failed."); + mm_util_error("Error: Resizing Image failed."); if (exception.severity != UndefinedException) CatchException(&exception); } @@ -219,7 +219,7 @@ static int __mm_util_write_image_to_file(ImageInfo *image_info, Image *image, co image->filename[MaxTextExtent-1] = '\0'; strncpy(image->filename, out_path, sizeof(image->filename)); if (WriteImage (image_info, image) == MagickFalse) { - mm_util_error("Error: __mm_util_rotate_image failed."); + mm_util_error("Error: Writing Image failed."); if (exception.severity != UndefinedException) CatchException(&exception); diff --git a/magick/test/mm_util_magick_testsuite.c b/magick/test/mm_util_magick_testsuite.c index 5523235..de56704 100755 --- a/magick/test/mm_util_magick_testsuite.c +++ b/magick/test/mm_util_magick_testsuite.c @@ -114,7 +114,7 @@ static void __save_to_file(mm_util_image_h handle, const char *out_path) return; } - printf("[save to file] buffer[%p], width[%d], height[%d], size[%d], format [%d], out_path [%s]\n", buffer, width, height, size, format, out_path); + printf("[save to file] buffer[%p], width[%d], height[%d], size[%zu], format [%d], out_path [%s]\n", buffer, width, height, size, format, out_path); __write_to_file(out_path, buffer, size); @@ -142,7 +142,7 @@ static int __get_buffer_for_test(mm_util_magick_format req_format, unsigned char return ret; } - printf("[get_buffer] buffer[%p], width[%d], height[%d], size[%d], format [%d]\n", *buffer, *width, *height, *size, *format); + printf("[get_buffer] buffer[%p], width[%d], height[%d], size[%zu], format [%d]\n", *buffer, *width, *height, *size, *format); ret = mm_util_destroy_handle(dst_handle); if (ret != MM_UTIL_ERROR_NONE) { diff --git a/packaging/libmm-utility.spec b/packaging/libmm-utility.spec index bb767aa..12b905b 100755 --- a/packaging/libmm-utility.spec +++ b/packaging/libmm-utility.spec @@ -1,6 +1,6 @@ Name: libmm-utility Summary: Multimedia Framework Utility Library -Version: 0.1.4 +Version: 0.1.5 Release: 0 Group: System/Libraries License: Apache-2.0 -- 2.7.4