mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-05-17 21:00:37 +00:00
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:
parent
5a9627ced8
commit
6fa41eee98
@ -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,
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user