Change to use mm_image_debug_image when print out each parameters 23/201423/1
authorhj kim <backto.kim@samsung.com>
Thu, 14 Mar 2019 02:48:09 +0000 (11:48 +0900)
committerhj kim <backto.kim@samsung.com>
Thu, 14 Mar 2019 02:48:09 +0000 (11:48 +0900)
Change-Id: I6f1b5d2b81bbea18bf98b11d1ea6cbce22394489

common/mm_util_image.c

index f1f2e69..8a9fd15 100755 (executable)
@@ -51,9 +51,6 @@ int mm_image_create_image(unsigned int width, unsigned int height,
 {
        mm_image_info_s *_image = NULL;
 
-       /* initialize return value */
-       *image = NULL;
-
        mm_util_retvm_if(image == NULL, MM_UTIL_ERROR_INVALID_PARAMETER, "Invalid image");
        mm_util_retvm_if(width == 0, MM_UTIL_ERROR_INVALID_PARAMETER, "Invalid width");
        mm_util_retvm_if(height == 0, MM_UTIL_ERROR_INVALID_PARAMETER, "Invalid height");
@@ -76,11 +73,10 @@ int mm_image_create_image(unsigned int width, unsigned int height,
        _image->height = height;
        _image->color = color;
 
-       mm_util_sec_debug("w [%u], h [%u], color [%u], data [%p], size [%zu]",
-               _image->width, _image->height, _image->color, _image->data, _image->size);
-
        *image = (mm_util_image_h)_image;
 
+       mm_image_debug_image(*image, "Create Image");
+
        return MM_UTIL_ERROR_NONE;
 }