diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2007-11-15 22:19:08 +0100 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2007-11-29 10:22:47 +0100 |
commit | 039248654a1b3371e4ec140278c8f578fdc47935 (patch) | |
tree | 0fd62ec170fb1090e229a8fd26c02f64a2cbbee3 /arch/sandbox/lib/common.c | |
parent | dbfef6fb638faff01f786f9f6c1620fd833bde40 (diff) | |
download | barebox-039248654a1b3371e4ec140278c8f578fdc47935.tar.gz barebox-039248654a1b3371e4ec140278c8f578fdc47935.tar.xz |
[sandbox] fix stdin and stdout fd for sandbox console
u_boot_register_console uses the wrong filedescriptors for in and out
the are swapped. This patch fixes this problem and uses fileno instead.
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'arch/sandbox/lib/common.c')
-rw-r--r-- | arch/sandbox/lib/common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sandbox/lib/common.c b/arch/sandbox/lib/common.c index f5e16d2963..4fd4eef208 100644 --- a/arch/sandbox/lib/common.c +++ b/arch/sandbox/lib/common.c @@ -312,7 +312,7 @@ int main(int argc, char *argv[]) } } - u_boot_register_console("console", 1, 0); + u_boot_register_console("console", fileno(stdin), fileno(stdout)); rawmode(); start_uboot(); |