From: Sangchul Lee Date: Tue, 28 Apr 2020 05:05:33 +0000 (+0900) Subject: Add ms_warning() log function X-Git-Tag: submit/tizen/20200511.015752^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F66%2F232066%2F1;p=platform%2Fcore%2Fapi%2Fmediastreamer.git Add ms_warning() log function Use purple color for "" as well as "". [Version] 0.1.37 [Issue Type] Log Change-Id: I48f27d94792f5da15af5390d0d07038421419016 Signed-off-by: Sangchul Lee --- diff --git a/include/media_streamer_util.h b/include/media_streamer_util.h index 04fb494..9b75895 100644 --- a/include/media_streamer_util.h +++ b/include/media_streamer_util.h @@ -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""FONT_COLOR_RESET); \ + LOGD(FONT_COLOR_PURPLE""FONT_COLOR_RESET); \ } while (0) #define ms_debug_fleave() \ diff --git a/packaging/capi-media-streamer.spec b/packaging/capi-media-streamer.spec index 0d8b88e..56657cd 100644 --- a/packaging/capi-media-streamer.spec +++ b/packaging/capi-media-streamer.spec @@ -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 diff --git a/src/media_streamer_util.c b/src/media_streamer_util.c index fa590f3..9119a2d 100644 --- a/src/media_streamer_util.c +++ b/src/media_streamer_util.c @@ -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;