YaGL/VIGS: Set log level to info by default 62/17362/1
authorStanislav Vorobiov <s.vorobiov@samsung.com>
Thu, 6 Mar 2014 13:21:30 +0000 (17:21 +0400)
committerStanislav Vorobiov <s.vorobiov@samsung.com>
Thu, 6 Mar 2014 13:21:30 +0000 (17:21 +0400)
Change-Id: I42617a10c8cfc7535aefd633d9d95571c5106804

hw/vigs/vigs_log.c
hw/yagl/yagl_device.c
hw/yagl/yagl_log.c

index 8efc5a6..f2e776f 100644 (file)
@@ -75,7 +75,7 @@ static void vigs_log_print_current_time(void)
 void vigs_log_init(void)
 {
     char *level_str = getenv("VIGS_DEBUG");
-    int level = level_str ? atoi(level_str) : vigs_log_level_off;
+    int level = level_str ? atoi(level_str) : vigs_log_level_info;
 
     if (level < 0) {
         g_log_level = vigs_log_level_off;
index 1dad426..2b12a46 100644 (file)
@@ -131,7 +131,7 @@ static void yagl_device_operate(YaGLState *s, int user_index, hwaddr buff_pa)
                 s->users[user_index].process_id = target_pid;
                 s->users[user_index].thread_id = target_tid;
 
-                YAGL_LOG_INFO("user %d activated", user_index);
+                YAGL_LOG_DEBUG("user %d activated", user_index);
 
                 /*
                  * The buff is now owned by client.
@@ -150,7 +150,7 @@ static void yagl_device_operate(YaGLState *s, int user_index, hwaddr buff_pa)
 
         memset(&s->users[user_index], 0, sizeof(s->users[user_index]));
 
-        YAGL_LOG_INFO("user %d deactivated", user_index);
+        YAGL_LOG_DEBUG("user %d deactivated", user_index);
     }
 
 out:
index ae39b9a..ceb0895 100644 (file)
@@ -216,7 +216,7 @@ static bool yagl_log_match(const char* str, const char* expr)
 void yagl_log_init(void)
 {
     char* level_str = getenv("YAGL_DEBUG");
-    int level = level_str ? atoi(level_str) : yagl_log_level_off;
+    int level = level_str ? atoi(level_str) : yagl_log_level_info;
     char* facilities;
     char* func_trace;