Add ms_warning() log function 66/232066/1 submit/tizen/20200511.015752
authorSangchul Lee <sc11.lee@samsung.com>
Tue, 28 Apr 2020 05:05:33 +0000 (14:05 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Tue, 28 Apr 2020 05:19:18 +0000 (14:19 +0900)
Use purple color for "<Enter>" as well as "<Leave>".

[Version] 0.1.37
[Issue Type] Log

Change-Id: I48f27d94792f5da15af5390d0d07038421419016
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
include/media_streamer_util.h
packaging/capi-media-streamer.spec
src/media_streamer_util.c

index 04fb494..9b75895 100644 (file)
@@ -55,6 +55,11 @@ extern "C" {
                LOGI(FONT_COLOR_GREEN""fmt""FONT_COLOR_RESET, ##arg);         \
        } while (0)
 
+#define ms_warning(fmt, arg...)                         \
+       do {                                              \
+               LOGW(FONT_COLOR_YELLOW""fmt""FONT_COLOR_RESET, ##arg);           \
+       } while (0)
+
 #define ms_error(fmt, arg...)                         \
        do {                                              \
                LOGE(FONT_COLOR_RED""fmt""FONT_COLOR_RESET, ##arg);           \
@@ -62,7 +67,7 @@ extern "C" {
 
 #define ms_debug_fenter()                             \
        do {                                              \
-               LOGD(FONT_COLOR_YELLOW"<Enter>"FONT_COLOR_RESET);             \
+               LOGD(FONT_COLOR_PURPLE"<Enter>"FONT_COLOR_RESET);             \
        } while (0)
 
 #define ms_debug_fleave()                             \
index 0d8b88e..56657cd 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-media-streamer
 Summary:    A Media Streamer API
-Version:    0.1.36
+Version:    0.1.37
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index fa590f3..9119a2d 100644 (file)
@@ -97,7 +97,7 @@ static dictionary *__ms_get_ini_instance(void)
                ms_dict = iniparser_load(MEDIA_STREAMER_INI_PATH);
 
                if (!ms_dict)
-                       ms_debug("Could not open ini [%s]. Media-streamer will use default values.", MEDIA_STREAMER_INI_PATH);
+                       ms_warning("Could not open ini [%s]. Media-streamer will use default values.", MEDIA_STREAMER_INI_PATH);
                else
                        ms_debug("Open ini file [%s].", MEDIA_STREAMER_INI_PATH);
                instance = ms_dict;