From owner-freebsd-hackers Mon May 13 11:19: 4 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from energistic.com (bdsl.66.12.217.106.gte.net [66.12.217.106]) by hub.freebsd.org (Postfix) with ESMTP id 092E437B40E for ; Mon, 13 May 2002 11:18:35 -0700 (PDT) Received: from energistic.com (steve@localhost [127.0.0.1]) by energistic.com (8.12.3/8.12.3) with ESMTP id g4DIIWT8074696 for ; Mon, 13 May 2002 13:18:32 -0500 (EST) (envelope-from steve@energistic.com) Received: (from steve@localhost) by energistic.com (8.12.3/8.12.3/Submit) id g4DIIWt7074111 for freebsd-hackers@freebsd.org; Mon, 13 May 2002 13:18:32 -0500 (EST) Date: Mon, 13 May 2002 13:18:32 -0500 (EST) From: Steve Ames Message-Id: <200205131818.g4DIIWt7074111@energistic.com> To: freebsd-hackers@freebsd.org Subject: typo in dev/ed/if_ed.c Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message