From 039248654a1b3371e4ec140278c8f578fdc47935 Mon Sep 17 00:00:00 2001 From: Marc Kleine-Budde Date: Thu, 15 Nov 2007 22:19:08 +0100 Subject: [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 --- arch/sandbox/lib/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- cgit v1.2.3