diff options
Diffstat (limited to 'kern/shell.c')
-rw-r--r-- | kern/shell.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/kern/shell.c b/kern/shell.c index 38f29912..c526b311 100644 --- a/kern/shell.c +++ b/kern/shell.c @@ -20,8 +20,9 @@ #include <kern/console.h> #include <kern/error.h> -#include <kern/init.h> #include <kern/hash.h> +#include <kern/init.h> +#include <kern/log.h> #include <kern/macros.h> #include <kern/mutex.h> #include <kern/shell.h> @@ -445,7 +446,7 @@ shell_cmd_add(struct shell_cmd *cmd) for (;;) { if (strcmp(cmd->name, tmp->name) == 0) { - printf("shell: %s: shell command name collision", cmd->name); + log_err("shell: %s: shell command name collision", cmd->name); return ERROR_EXIST; } |