DM: add static for local variables

variables defined by struct logger_ops just used
in local file, so add static to them.

Tracked-On: #3012
Signed-off-by: Minggui Cao <minggui.cao@intel.com>
Reviewed-by: Yin Fengwei <fengwei.yin@intel.com>
This commit is contained in:
Minggui Cao 2019-05-23 11:00:06 +08:00 committed by ACRN System Integration
parent 5a9627ced8
commit 6fa41eee98
2 changed files with 2 additions and 2 deletions

View File

@ -87,7 +87,7 @@ static void write_to_kmsg(const char *fmt, va_list args)
}
}
struct logger_ops logger_kmsg = {
static struct logger_ops logger_kmsg = {
.name = "kmsg",
.is_enabled = is_kmsg_enabled,
.get_log_level = get_kmsg_log_level,

View File

@ -118,7 +118,7 @@ static void write_to_console(const char *fmt, va_list args)
vprintf(fmt, args);
}
struct logger_ops logger_console = {
static struct logger_ops logger_console = {
.name = "console",
.is_enabled = is_console_enabled,
.get_log_level = get_console_log_level,