diff options
author | Richard Braun <rbraun@sceen.net> | 2017-06-11 11:27:32 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2017-06-11 11:27:32 +0200 |
commit | b135fef80cf8f9addf5725881a2fe81cda404dfe (patch) | |
tree | 57571a9e968b277090eba9873a0ad733fea7ed06 /kern/log.c | |
parent | cd56e2cf82938061b101cf752ce0db195c4009ed (diff) |
Make the diagnostics shell optional
Diffstat (limited to 'kern/log.c')
-rw-r--r-- | kern/log.c | 20 |
1 files changed, 12 insertions, 8 deletions
@@ -267,6 +267,8 @@ log_run(void *arg) } } +#ifdef X15_SHELL + static void log_dump(unsigned int level) { @@ -315,14 +317,6 @@ log_shell_dump(int argc, char **argv) log_dump(level); } -void __init -log_setup(void) -{ - cbuf_init(&log_cbuf, log_buffer, sizeof(log_buffer)); - spinlock_init(&log_lock); - log_print_level = LOG_INFO; -} - static struct shell_cmd log_shell_cmds[] = { SHELL_CMD_INITIALIZER2("log_dump", log_shell_dump, "log_dump [<level>]", @@ -339,6 +333,16 @@ static struct shell_cmd log_shell_cmds[] = { " 7: debug"), }; +#endif /* X15_SHELL */ + +void __init +log_setup(void) +{ + cbuf_init(&log_cbuf, log_buffer, sizeof(log_buffer)); + spinlock_init(&log_lock); + log_print_level = LOG_INFO; +} + void __init log_start(void) { |