use debug_msg instead of debug_log 62/304162/2 accepted/tizen_unified_riscv accepted/tizen/unified/20240112.154613 accepted/tizen/unified/riscv/20240115.113630
authorhjkim <backto.kim@samsung.com>
Thu, 11 Jan 2024 05:54:11 +0000 (14:54 +0900)
committerHaejeong kim <backto.kim@samsung.com>
Fri, 12 Jan 2024 01:52:13 +0000 (01:52 +0000)
debug_log and debug_msg is same. so debug_log has been removed.

Change-Id: Iae002dea7b4fa55c92c1d195516a2dd58e966890

formats/ffmpeg/mm_file_format_ffmpeg.c
include/mm_file_debug.h
packaging/libmm-fileinfo.spec
utils/mm_file_util_tag.c

index f7ed16fc6325f6792c1e9b4740ef0937ff65a37f..9387eddfe8ab0cbf84028b8b36defe50d8a33004 100644 (file)
@@ -611,7 +611,7 @@ static void __fill_picture_in_context(char *value, MMFileFormatContext *formatCo
 
        meta_data = g_base64_decode(value, &len);
        if (!meta_data) {
-               debug_log(RELEASE, "no picture");
+               debug_msg(RELEASE, "no picture");
                return;
        }
 
@@ -689,7 +689,7 @@ static void __fill_rotate_in_context(AVStream *st, MMFileFormatContext *formatCo
        rotate = -rotate;
        if (rotate < 0) // for backward compatibility
                rotate += 360;
-       debug_log(RELEASE, "Rotate: %f", rotate);
+       debug_msg(RELEASE, "Rotate: %f", rotate);
        mmfile_free(formatContext->rotate);
        formatContext->rotate = g_strdup_printf("%g", rotate);
 }
@@ -746,7 +746,7 @@ static void __fill_metainfo_in_context(AVDictionary *metainfo, MMFileFormatConte
                } else if (!g_ascii_strcasecmp(tag->key, "metadata_block_picture")) {
                        __fill_picture_in_context(tag->value, formatContext);
                } else {
-                       debug_log(RELEASE, "Not support metadata. [%s:%s]", tag->key, tag->value);
+                       debug_msg(RELEASE, "Not support metadata. [%s:%s]", tag->key, tag->value);
                }
        }
 }
index 5b2c1f022c07e16aba8274752c1da3a4ea0a65d0..466eb1511429aae7da84686ed16a72f6bd7ad53a 100755 (executable)
@@ -54,15 +54,6 @@ extern "C" {
 #define FONT_COLOR_CYAN     "\033[36m"
 #define FONT_COLOR_GRAY     "\033[37m"
 
-#define debug_log(mode, fmt, arg...) do { \
-                       if (mode == DEBUG) {    \
-                               LOGD(FONT_COLOR_RESET fmt, ##arg); \
-                       } else if (mode == RELEASE) {   \
-                               if (DEBUG_MODE == 1)    \
-                                       LOGD(FONT_COLOR_RESET fmt, ##arg); \
-                       }       \
-               } while (0)
-
 #define debug_msg(mode, fmt, arg...) do { \
                        if (mode == DEBUG) {    \
                                LOGD(FONT_COLOR_RESET fmt, ##arg); \
@@ -110,15 +101,6 @@ extern "C" {
 
 #else
 
-#define debug_log(mode, fmt, arg...) do { \
-                       if (mode == DEBUG) {    \
-                               LOGD(" "fmt"", ##arg);     \
-                       } else if (mode == RELEASE) {   \
-                               if (DEBUG_MODE == 1)    \
-                                       LOGD(" "fmt"", ##arg);     \
-                       }       \
-               } while (0)
-
 #define debug_msg(mode, fmt, arg...) do { \
                        if (mode == DEBUG) {    \
                                LOGD(" "fmt"", ##arg);     \
index 4bd46a9fe6c493d0814cd570dda55cb9ed054d15..b4ed5077e5f29bab24114c97843f02741e529c08 100644 (file)
@@ -1,6 +1,6 @@
 Name:      libmm-fileinfo
 Summary:    Media Fileinfo
-Version:    1.0.23
+Version:    1.0.24
 Release:    0
 Group:      System/Libraries
 License:    Apache-2.0
index 9ede1fc2a455fbd3a380e893b6ce4a10e1a2dfcb..b9898f79ff8f99b92ca1ecfa3935a5b06abb5213 100644 (file)
@@ -3384,7 +3384,7 @@ void mm_file_id3tag_restore_content_info(AvFileContentInfo *pInfo)
        if (pInfo->tagInfo[AV_ID3TAG_GENRE].value) {
                /* Check integer */
                if (!__get_genre_num(pInfo->tagInfo[AV_ID3TAG_GENRE].value, &genre_id)) {
-                       debug_log(RELEASE, "genre information is not integer [%s]", pInfo->tagInfo[AV_ID3TAG_GENRE].value);
+                       debug_msg(RELEASE, "genre information is not integer [%s]", pInfo->tagInfo[AV_ID3TAG_GENRE].value);
                        return;
                }