Add message for mm_util_create_image() to debug wrong parameter 25/205725/2
authorjiyong.min <jiyong.min@samsung.com>
Wed, 8 May 2019 23:40:10 +0000 (08:40 +0900)
committerjiyong.min <jiyong.min@samsung.com>
Wed, 8 May 2019 23:43:12 +0000 (08:43 +0900)
Change-Id: I940f18a179663ceae9b61e14919cb1ad1b430e60

common/mm_util_image.c

index ab538d8..6e8f296 100755 (executable)
@@ -57,6 +57,8 @@ int mm_image_create_image(unsigned int width, unsigned int height,
        mm_util_retvm_if(!IS_VALID_COLOR(color), MM_UTIL_ERROR_INVALID_PARAMETER, "Invalid color [%d]", color);
        mm_util_retvm_if(data == NULL || (size == 0), MM_UTIL_ERROR_INVALID_PARAMETER, "Invalid data");
 
+       mm_util_sec_debug("w [%u], h [%u], color [%u], data [%p], size [%zu]", width, height, color, data, size);
+
        _image = (mm_image_info_s *)calloc(1, sizeof(mm_image_info_s));
        mm_util_retvm_if((_image == NULL), MM_UTIL_ERROR_OUT_OF_MEMORY, "Memory allocation failed");