Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 May 2002 13:18:32 -0500 (EST)
From:      Steve Ames <steve@energistic.com>
To:        freebsd-hackers@freebsd.org
Subject:   typo in dev/ed/if_ed.c
Message-ID:  <200205131818.g4DIIWt7074111@energistic.com>

next in thread | raw e-mail | index | archive | help

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205131818.g4DIIWt7074111>