summaryrefslogtreecommitdiff
path: root/kern/shell.c
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2017-06-10 17:24:04 +0200
committerRichard Braun <rbraun@sceen.net>2017-06-10 17:38:47 +0200
commitb719ffa6583447ff933fbcf21274b376133cb992 (patch)
tree4bd7aaf9767dea632a1338041f0c6fdd0624f867 /kern/shell.c
parent562904ff8e2f5e40e4be76dc7c4d919a4bda05f8 (diff)
Use log functions where appropriate
Diffstat (limited to 'kern/shell.c')
-rw-r--r--kern/shell.c5
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;
}