Module Name: src
Committed By: mlelstv
Date: Sun Oct 11 10:00:10 UTC 2009
Modified Files:
src/sys/arch/amiga/stand/bootblock/boot: console.c
Log Message:
AmigaOS console.device expects a character buffer, not a pointer to an int.
This fixes printf() output.
To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/sys/arch/amiga/stand/bootblock/boot/console.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/amiga/stand/bootblock/boot/console.c
diff -u src/sys/arch/amiga/stand/bootblock/boot/console.c:1.11 src/sys/arch/amiga/stand/bootblock/boot/console.c:1.12
--- src/sys/arch/amiga/stand/bootblock/boot/console.c:1.11 Wed Mar 18 10:22:23 2009
+++ src/sys/arch/amiga/stand/bootblock/boot/console.c Sun Oct 11 10:00:10 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: console.c,v 1.11 2009/03/18 10:22:23 cegger Exp $ */
+/* $NetBSD: console.c,v 1.12 2009/10/11 10:00:10 mlelstv Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -178,9 +178,10 @@
putchar(int c)
{
struct Console *mc = ConsoleBase;
+ char buf = c;
mc->cnior->length = 1;
- mc->cnior->buf = &c;
+ mc->cnior->buf = &buf;
mc->cnior->cmd = Cmd_Wr;
(void)DoIO(mc->cnior);
}