From a96c69e45428a13b0e16a4fc332694e9f791b24d Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sun, 4 Sep 2022 11:37:31 +0200 Subject: user/shell: use perror --- src/user/app/shell/shell.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/user/app/shell/shell.c') diff --git a/src/user/app/shell/shell.c b/src/user/app/shell/shell.c index 0c92410..290102e 100644 --- a/src/user/app/shell/shell.c +++ b/src/user/app/shell/shell.c @@ -50,8 +50,7 @@ void run_args(int argc, char **argv, struct redir *redir) { return; } else if (!strcmp(argv[0], "cd")) { if (chdir(argc > 1 ? argv[1] : "/") < 0) - eprintf("error"); - // TODO strerror + perror("cd"); return; } else if (!strcmp(argv[0], "time")) { uint64_t time = __rdtsc(); -- cgit v1.2.3