enable app dlog macro
authorjuho <juho80.son@samsung.com>
Wed, 5 Sep 2012 09:26:30 +0000 (18:26 +0900)
committerjuho <juho80.son@samsung.com>
Wed, 24 Oct 2012 08:21:34 +0000 (17:21 +0900)
Change-Id: I528f3b73de47042b3bc1fd632479cd1ea52caefd

log.c

diff --git a/log.c b/log.c
index fbe59e8..d7be833 100755 (executable)
--- a/log.c
+++ b/log.c
@@ -56,8 +56,11 @@ static int __write_to_log_kernel(log_id_t log_id, log_priority prio, const char
        int log_fd;
        struct iovec vec[3];
 
-       if(log_id >= LOG_ID_APPS && prio<g_debug_level)
-       {
+       if (log_id < LOG_ID_APPS) {
+               if(prio<g_debug_level) {
+                       return 0;
+               }
+       } else if (LOG_ID_MAX <= log_id) {
                return 0;
        }
        if( log_id < LOG_ID_MAX )