Fixup error message in switch_root

This commit is contained in:
sin 2014-04-14 11:27:18 +01:00
parent 6cf5c4dfba
commit 33be4f39c2
1 changed files with 2 additions and 2 deletions

View File

@ -114,9 +114,9 @@ main(int argc, char **argv)
if(open(console, O_RDWR) == -1)
eprintf("open %s:", console);
if (dup2(STDIN_FILENO, STDOUT_FILENO) != STDOUT_FILENO)
eprintf("dup2 %s:", "0,1");
eprintf("dup2 %s:", "stdin,stdout");
if (dup2(STDIN_FILENO, STDERR_FILENO) != STDERR_FILENO)
eprintf("dup2 %s:", "0,2");
eprintf("dup2 %s:", "stdin,stderr");
}
/* execute init */