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),
};
DEVICE_NOTIFIER_BEZEL_WAKEUP,
DEVICE_NOTIFIER_DISPLAY_BRIGHTNESS,
DEVICE_NOTIFIER_ULTRAPOWERSAVING,
- DEVICE_NOTIFIER_CRITICAL_LOG,
DEVICE_NOTIFIER_EXTCON_COUNT,
DEVICE_NOTIFIER_MAX,
};
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);
-}
#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)