Remove unused function ciritical_log 63/244263/3 accepted/tizen/6.0/unified/20201030.115431 accepted/tizen/6.0/unified/hotfix/20201103.004154 accepted/tizen/unified/20200922.090819 submit/tizen/20200918.070747 submit/tizen/20200921.022732 submit/tizen_6.0/20201029.205104 submit/tizen_6.0_hotfix/20201102.192504 submit/tizen_6.0_hotfix/20201103.114804 tizen_6.0.m2_release
authorlokilee73 <changjoo.lee@samsung.com>
Wed, 16 Sep 2020 11:16:20 +0000 (20:16 +0900)
committerlokilee73 <changjoo.lee@samsung.com>
Wed, 16 Sep 2020 11:20:09 +0000 (20:20 +0900)
ex) CRITICAL_LOG is used instead of critical_log

Change-Id: Ib47f59e9d3425cd877f978286c4da3501bdb4866
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
src/core/device-notifier.c
src/core/device-notifier.h
src/core/log.c
src/core/log.h

index db104be..3f8d1b6 100644 (file)
@@ -76,7 +76,6 @@ static const char *device_notifier_type_str[DEVICE_NOTIFIER_MAX] = {
        NOTIFY_STR(DEVICE_NOTIFIER_UPSM_OFF),
        NOTIFY_STR(DEVICE_NOTIFIER_BEZEL_WAKEUP),
        NOTIFY_STR(DEVICE_NOTIFIER_DISPLAY_BRIGHTNESS),
-       NOTIFY_STR(DEVICE_NOTIFIER_CRITICAL_LOG),
        NOTIFY_STR(DEVICE_NOTIFIER_ULTRAPOWERSAVING),
 };
 
index 98fca83..6362a82 100644 (file)
@@ -59,7 +59,6 @@ enum device_notifier_type {
        DEVICE_NOTIFIER_BEZEL_WAKEUP,
        DEVICE_NOTIFIER_DISPLAY_BRIGHTNESS,
        DEVICE_NOTIFIER_ULTRAPOWERSAVING,
-       DEVICE_NOTIFIER_CRITICAL_LOG,
        DEVICE_NOTIFIER_EXTCON_COUNT,
        DEVICE_NOTIFIER_MAX,
 };
index 679eee8..fe0d3bf 100644 (file)
@@ -39,15 +39,3 @@ void __cyg_profile_func_exit(void *func, void *caller)
        g_trace_depth--;
 }
 #endif
-
-void critical_log_internal(const char *func, const char *fmt, ...)
-{
-       va_list ap;
-       char buf[256];
-
-       va_start(ap, fmt);
-       vsnprintf(buf, 256, fmt, ap);
-       va_end(ap);
-       _I("%s:%s", func, buf);
-       device_notify(DEVICE_NOTIFIER_CRITICAL_LOG, (void *)buf);
-}
index 60c363e..395ab0e 100644 (file)
@@ -39,6 +39,3 @@
 #define __stringify_1(x...)    #x
 #define __stringify(x...)      __stringify_1(x)
 
-void critical_log_internal(const char *caller, const char *fmt, ...);
-
-#define critical_log(fmt, arg...) critical_log_internal(__func__, fmt, ##arg)