Subject: Re: [2.0-RC1] shutdown is not clean
To: Michael Gerhards <HM-Gerhards@uni.de>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: port-sparc64
Date: 10/24/2004 19:03:29
On Sat, Oct 23, 2004 at 02:40:47PM +0200, Michael Gerhards wrote:
> I tried to compile a GENERIC kernel with your patch. But now I get the
> following error:
> 
> #   compile  GENERIC/wd.o
> cc -mcmodel=medlow -mno-fpu -ffreestanding -O2 -Werror -Wall -Wno-main
> -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes
> -Wstrict-prototypes -Wno-sign-compare -fno-zero-initialized-in-bss
> -Dsparc64 -D__sparc64__ -D_LP64 -Wa,-Av9a -I. -I../../../../arch
> -I../../../.. -nostdinc -DLKM -DMAXUSERS=64 -D_KERNEL -D_KERNEL_OPT -c
> ../../../../dev/ata/wd.c
> ../../../../dev/ata/wd.c: In function `wd_flushcache':
> ../../../../dev/ata/wd.c:1707: warning: too many arguments for format
> *** Error code 1
> 
> Stop.
> make: stopped in /usr/src/sys/arch/sparc64/compile/GENERIC

Ops, just change line 1707:
	printf("flush cache command completed\n", wdc_c.r_command);
to
	printf("flush cache command completed\n");

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
     NetBSD: 26 ans d'experience feront toujours la difference
--