Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/amiga/stand/bootblock/boot AmigaOS console.device e...
details: https://anonhg.NetBSD.org/src/rev/6972e30a6352
branches: trunk
changeset: 748046:6972e30a6352
user: mlelstv <mlelstv%NetBSD.org@localhost>
date: Sun Oct 11 10:00:10 2009 +0000
description:
AmigaOS console.device expects a character buffer, not a pointer to an int.
This fixes printf() output.
diffstat:
sys/arch/amiga/stand/bootblock/boot/console.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 2a26b9286d07 -r 6972e30a6352 sys/arch/amiga/stand/bootblock/boot/console.c
--- a/sys/arch/amiga/stand/bootblock/boot/console.c Sun Oct 11 09:25:19 2009 +0000
+++ b/sys/arch/amiga/stand/bootblock/boot/console.c Sun Oct 11 10:00:10 2009 +0000
@@ -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);
}
Home |
Main Index |
Thread Index |
Old Index