Just got this during a kernel build:
cc -c -O -pipe -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -W
missing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -an
si -nostdinc -I- -I. -I/usr/src/sys -I/usr/src/sys/dev -I/usr/src/sys/contrib/
dev/acpica -I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/../include -D_KERNEL
-ffreestanding -include opt_global.h -fno-common -mpreferred-stack-boundary=2
-ffreestanding -Werror /usr/src/sys/dev/ed/if_ed.c
cc1: warnings being treated as errors
/usr/src/sys/dev/ed/if_ed.c: In function `ed_attach':
/usr/src/sys/dev/ed/if_ed.c:1653: warning: unknown conversion type character `D'
in format
/usr/src/sys/dev/ed/if_ed.c:1653: warning: too many arguments for format
*** Error code 1
Stop in /usr/obj/usr/src/sys/SB.
*** Error code 1
Stop in /usr/src.
*** Error code 1
Stop in /usr/src.
The offending code:
/*
* Print additional info when attached
*/
printf("%s%d: address %6D, ", ifp->if_name, ifp->if_unit,
sc->arpcom.ac_enaddr, ":");
I'd guess this is a simple typo and should be '%6d' instead? The
extra parameter (":") I'm less clear on what that's doing there.
The file in question:
* $FreeBSD: src/sys/dev/ed/if_ed.c,v 1.208 2002/03/20 02:07:18 alfred Exp $
-Steve
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message