From 688e4b57e6a647dfb4b5aaad7b0a683be5343ed3 Mon Sep 17 00:00:00 2001 From: mlelstv Date: Sun, 11 Oct 2009 10:00:10 +0000 Subject: [PATCH] AmigaOS console.device expects a character buffer, not a pointer to an int. This fixes printf() output. --- sys/arch/amiga/stand/bootblock/boot/console.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/arch/amiga/stand/bootblock/boot/console.c b/sys/arch/amiga/stand/bootblock/boot/console.c index 88c0b5e27b93..b98e58db7675 100644 --- a/sys/arch/amiga/stand/bootblock/boot/console.c +++ b/sys/arch/amiga/stand/bootblock/boot/console.c @@ -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 @@ void 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); }