From 9021f3ed1675102e1d1733c34fe5f74c3e7d8e04 Mon Sep 17 00:00:00 2001 From: Haejeong Kim Date: Wed, 6 Sep 2017 10:11:28 +0900 Subject: [PATCH] Remove \n in dlog msg Change-Id: Id221e729189f4a828778ce89d9ea172902a3015f --- gif/mm_util_gif.c | 2 +- imgcv/mm_util_imgcv.c | 6 +++--- imgp/mm_util_imgp.c | 8 ++++---- jpeg/mm_util_jpeg.c | 16 ++++++++-------- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/gif/mm_util_gif.c b/gif/mm_util_gif.c index d4de911..c119f30 100755 --- a/gif/mm_util_gif.c +++ b/gif/mm_util_gif.c @@ -238,7 +238,7 @@ static int __read_gif(mm_util_gif_data *decoded, const char *filename, void *mem ColorMap = (GifFile->Image.ColorMap ? GifFile->Image.ColorMap : GifFile->SColorMap); if (ColorMap == NULL) { - mm_util_error("Gif Image does not have a colormap\n"); + mm_util_error("Gif Image does not have a colormap"); ret = MM_UTIL_ERROR_INVALID_OPERATION; goto error; } diff --git a/imgcv/mm_util_imgcv.c b/imgcv/mm_util_imgcv.c index e1e38fd..de8581a 100755 --- a/imgcv/mm_util_imgcv.c +++ b/imgcv/mm_util_imgcv.c @@ -153,7 +153,7 @@ static int _mm_util_imgcv_calculate_hist(mm_util_imgcv_s *handle, unsigned char IplImage *vImg = cvCreateImage(cvSize(handle->width, handle->height), IPL_DEPTH_8U, 1); if (!hsvImg || !hImg || !sImg || !vImg) { - mm_util_error("fail to cvCreateImage()\n"); + mm_util_error("fail to cvCreateImage()"); return MM_UTIL_ERROR_INVALID_OPERATION; } @@ -193,8 +193,8 @@ static int _mm_util_imgcv_calculate_hist(mm_util_imgcv_s *handle, unsigned char _convert_hsv_to_rgb(hVal, sVal, vVal, &rVal, &gVal, &bVal); - mm_util_debug("nh[%d], ns[%d], nv[%d]\n", max_bin_idx[0], max_bin_idx[1], max_bin_idx[2]); - mm_util_debug("h[%d], s[%d], v[%d]\n", hVal, sVal, vVal); + mm_util_debug("nh[%d], ns[%d], nv[%d]", max_bin_idx[0], max_bin_idx[1], max_bin_idx[2]); + mm_util_debug("h[%d], s[%d], v[%d]", hVal, sVal, vVal); *rgb_r = rVal; *rgb_g = gVal; *rgb_b = bVal; diff --git a/imgp/mm_util_imgp.c b/imgp/mm_util_imgp.c index befb447..086fcc5 100755 --- a/imgp/mm_util_imgp.c +++ b/imgp/mm_util_imgp.c @@ -333,7 +333,7 @@ int __mm_util_get_buffer_size(mm_util_img_format format, unsigned int width, uns TTRACE_END(); return MM_UTIL_ERROR_NOT_SUPPORTED_FORMAT; } - mm_util_debug("format: %d, *imgsize: %d\n", format, *imgsize); + mm_util_debug("format: %d, *imgsize: %d", format, *imgsize); TTRACE_END(); return ret; @@ -580,7 +580,7 @@ static IMGPInfoFunc __mm_util_imgp_process(GModule *module) static int _mm_util_transform_packet_finalize_callback(media_packet_h packet, int err, void *userdata) { - mm_util_debug("==> finalize callback func is called [%d] \n", err); + mm_util_debug("==> finalize callback func is called [%d]", err); return MEDIA_PACKET_FINALIZE; } @@ -2065,7 +2065,7 @@ unsigned int crop_start_x, unsigned int crop_start_y, unsigned int *crop_dest_wi return MM_UTIL_ERROR_INVALID_PARAMETER; } - mm_util_debug("[Input] src: [%p] src_width: [%ui] src_height: [%ui] src_format: [%d] crop_start_x: [%ui] crop_start_y: [%ui] crop_dest_width: [%ui] crop_dest_height: [%ui]\n", + mm_util_debug("[Input] src: [%p] src_width: [%ui] src_height: [%ui] src_format: [%d] crop_start_x: [%ui] crop_start_y: [%ui] crop_dest_width: [%ui] crop_dest_height: [%ui]", src, src_width, src_height, src_format, crop_start_x, crop_start_y, *crop_dest_width, *crop_dest_height); switch (src_format) { @@ -2199,7 +2199,7 @@ EXPORT_API int mm_util_get_image_size(mm_util_img_format format, unsigned int wi TTRACE_END(); return MM_UTIL_ERROR_NOT_SUPPORTED_FORMAT; } - mm_util_debug("format: %d, *imgsize: %d\n", format, *imgsize); + mm_util_debug("format: %d, *imgsize: %d", format, *imgsize); TTRACE_END(); return ret; diff --git a/jpeg/mm_util_jpeg.c b/jpeg/mm_util_jpeg.c index e9a9c95..8886a35 100755 --- a/jpeg/mm_util_jpeg.c +++ b/jpeg/mm_util_jpeg.c @@ -1406,7 +1406,7 @@ EXPORT_API int mm_util_decode_from_jpeg_file(mm_util_jpeg_yuv_data *decoded, con #if LIBJPEG_TURBO mm_util_debug("#START# LIBJPEG_TURBO"); ret = __mm_image_decode_from_jpeg_file_with_libjpeg_turbo(decoded, filename, fmt); - mm_util_debug("decoded->data: %p\t width: %d\t height: %d\t size: %u\n", decoded->data, decoded->width, decoded->height, decoded->size); + mm_util_debug("decoded->data: %p\t width: %d\t height: %d\t size: %u", decoded->data, decoded->width, decoded->height, decoded->size); mm_util_debug("#End# LIBJPEG_TURBO, Success!! ret: %d", ret); #else mm_util_debug("#START# libjpeg"); @@ -1444,7 +1444,7 @@ EXPORT_API int mm_util_decode_from_jpeg_file(mm_util_jpeg_yuv_data *decoded, con ret = __mm_image_decode_from_jpeg_file_with_libjpeg(decoded, filename, fmt, MM_UTIL_JPEG_DECODE_DOWNSCALE_1_1); } - mm_util_debug("decoded->data: %p\t width: %d\t height:%d\t size: %u\n", decoded->data, decoded->width, decoded->height, decoded->size); + mm_util_debug("decoded->data: %p\t width: %d\t height:%d\t size: %u", decoded->data, decoded->width, decoded->height, decoded->size); mm_util_debug("#End# libjpeg, Success!! ret: %d", ret); #endif } else if (magic[0] == 0x47 && magic[1] == 0x49) { @@ -1487,7 +1487,7 @@ EXPORT_API int mm_util_decode_from_jpeg_memory(mm_util_jpeg_yuv_data *decoded, v mm_util_debug("#START# libjpeg"); ret = __mm_image_decode_from_jpeg_memory_with_libjpeg_turbo(decoded, src, size, fmt); - mm_util_debug("decoded->data: %p\t width: %d\t height: %u\t size: %u\n", decoded->data, decoded->width, decoded->height, decoded->size); + mm_util_debug("decoded->data: %p\t width: %d\t height: %u\t size: %u", decoded->data, decoded->width, decoded->height, decoded->size); mm_util_debug("#END# libjpeg, Success!! ret: %d", ret); #else @@ -1527,7 +1527,7 @@ EXPORT_API int mm_util_decode_from_jpeg_memory(mm_util_jpeg_yuv_data *decoded, v ret = __mm_image_decode_from_jpeg_memory_with_libjpeg(decoded, src, size, fmt, MM_UTIL_JPEG_DECODE_DOWNSCALE_1_1); } - mm_util_debug("decoded->data: %p\t width: %d\t height: %d\t size: %u\n", decoded->data, decoded->width, decoded->height, decoded->size); + mm_util_debug("decoded->data: %p\t width: %d\t height: %d\t size: %u", decoded->data, decoded->width, decoded->height, decoded->size); mm_util_debug("#END# libjpeg, Success!! ret: %d", ret); #endif @@ -1580,7 +1580,7 @@ EXPORT_API int mm_util_decode_from_jpeg_file_with_downscale(mm_util_jpeg_yuv_dat #if LIBJPEG_TURBO mm_util_debug("#START# LIBJPEG_TURBO"); ret = __mm_image_decode_from_jpeg_file_with_libjpeg_turbo(decoded, filename, fmt); - mm_util_debug("decoded->data: %p\t width: %d\t height: %d\t size: %u\n", decoded->data, decoded->width, decoded->height, decoded->size); + mm_util_debug("decoded->data: %p\t width: %d\t height: %d\t size: %u", decoded->data, decoded->width, decoded->height, decoded->size); mm_util_debug("#End# LIBJPEG_TURBO, Success!! ret: %d", ret); #else mm_util_debug("#START# libjpeg"); @@ -1618,7 +1618,7 @@ EXPORT_API int mm_util_decode_from_jpeg_file_with_downscale(mm_util_jpeg_yuv_dat ret = __mm_image_decode_from_jpeg_file_with_libjpeg(decoded, filename, fmt, downscale); } - mm_util_debug("decoded->data: %p\t width: %d\t height:%d\t size: %u\n", decoded->data, decoded->width, decoded->height, decoded->size); + mm_util_debug("decoded->data: %p\t width: %d\t height:%d\t size: %u", decoded->data, decoded->width, decoded->height, decoded->size); mm_util_debug("#End# libjpeg, Success!! ret: %d", ret); #endif } else if (magic[0] == 0x47 && magic[1] == 0x49) { @@ -1668,7 +1668,7 @@ EXPORT_API int mm_util_decode_from_jpeg_memory_with_downscale(mm_util_jpeg_yuv_d mm_util_debug("#START# libjpeg"); ret = __mm_image_decode_from_jpeg_memory_with_libjpeg_turbo(decoded, src, size, fmt); - mm_util_debug("decoded->data: %p\t width: %d\t height: %d\t size: %u\n", decoded->data, decoded->width, decoded->height, decoded->size); + mm_util_debug("decoded->data: %p\t width: %d\t height: %d\t size: %u", decoded->data, decoded->width, decoded->height, decoded->size); mm_util_debug("#END# libjpeg, Success!! ret: %d", ret); #else @@ -1708,7 +1708,7 @@ EXPORT_API int mm_util_decode_from_jpeg_memory_with_downscale(mm_util_jpeg_yuv_d ret = __mm_image_decode_from_jpeg_memory_with_libjpeg(decoded, src, size, fmt, downscale); } - mm_util_debug("decoded->data: %p\t width: %d\t height: %d\t size: %u\n", decoded->data, decoded->width, decoded->height, decoded->size); + mm_util_debug("decoded->data: %p\t width: %d\t height: %d\t size: %u", decoded->data, decoded->width, decoded->height, decoded->size); mm_util_debug("#END# libjpeg, Success!! ret: %d", ret); #endif -- 2.7.4