From: Stanislav Vorobiov Date: Thu, 6 Mar 2014 13:21:30 +0000 (+0400) Subject: YaGL/VIGS: Set log level to info by default X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.1~475^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0de2d72ecbf7a0c79b6ebd103e3c5d414fda23c8;p=sdk%2Femulator%2Fqemu.git YaGL/VIGS: Set log level to info by default Change-Id: I42617a10c8cfc7535aefd633d9d95571c5106804 --- diff --git a/hw/vigs/vigs_log.c b/hw/vigs/vigs_log.c index 8efc5a6d69..f2e776fc94 100644 --- a/hw/vigs/vigs_log.c +++ b/hw/vigs/vigs_log.c @@ -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; diff --git a/hw/yagl/yagl_device.c b/hw/yagl/yagl_device.c index 1dad426b67..2b12a463eb 100644 --- a/hw/yagl/yagl_device.c +++ b/hw/yagl/yagl_device.c @@ -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: diff --git a/hw/yagl/yagl_log.c b/hw/yagl/yagl_log.c index ae39b9a811..ceb08956c5 100644 --- a/hw/yagl/yagl_log.c +++ b/hw/yagl/yagl_log.c @@ -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;