change of debug msg format and update some debug msg 03/167903/4 accepted/tizen/unified/20180124.061556 submit/tizen/20180123.002657
authorhj kim <backto.kim@samsung.com>
Tue, 23 Jan 2018 01:59:32 +0000 (10:59 +0900)
committerhj kim <backto.kim@samsung.com>
Tue, 23 Jan 2018 04:54:21 +0000 (13:54 +0900)
Change-Id: I88da902696b4ba0222400f5d58e9d530f7c5d3b5

magick/mm_util_magick.c
magick/test/mm_util_magick_testsuite.c
packaging/libmm-utility.spec

index b552508..b22db46 100755 (executable)
@@ -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);
 
index 5523235..de56704 100755 (executable)
@@ -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) {
index bb767aa..12b905b 100755 (executable)
@@ -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