From 0de2d72ecbf7a0c79b6ebd103e3c5d414fda23c8 Mon Sep 17 00:00:00 2001 From: Stanislav Vorobiov Date: Thu, 6 Mar 2014 17:21:30 +0400 Subject: [PATCH] YaGL/VIGS: Set log level to info by default Change-Id: I42617a10c8cfc7535aefd633d9d95571c5106804 --- hw/vigs/vigs_log.c | 2 +- hw/yagl/yagl_device.c | 4 ++-- hw/yagl/yagl_log.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/vigs/vigs_log.c b/hw/vigs/vigs_log.c index 8efc5a6..f2e776f 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 1dad426..2b12a46 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 ae39b9a..ceb0895 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; -- 2.7.4