diff options
author | dzwdz | 2022-09-04 11:37:31 +0200 |
---|---|---|
committer | dzwdz | 2022-09-04 11:37:31 +0200 |
commit | a96c69e45428a13b0e16a4fc332694e9f791b24d (patch) | |
tree | 025cf8ebeba24c22ee166775724bd8f16861ce29 /src/user/app/shell/shell.c | |
parent | 014edc8e1df0e5070f974367a1b3b4462354410e (diff) |
user/shell: use perror
Diffstat (limited to 'src/user/app/shell/shell.c')
-rw-r--r-- | src/user/app/shell/shell.c | 3 |
1 files changed, 1 insertions, 2 deletions
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(); |