Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pcmcia Correct formatting. Put the port and the ethe...
details: https://anonhg.NetBSD.org/src/rev/8d06cfc436d5
branches: trunk
changeset: 509221:8d06cfc436d5
user: christos <christos%NetBSD.org@localhost>
date: Sun Apr 29 20:12:01 2001 +0000
description:
Correct formatting. Put the port and the ethernet address in their own
line.
XXX: it is stupid that pcmcia_io_map() prints " port 0xNNN[-0xMMM]". This
makes the printing code confusing.
diffstat:
sys/dev/pcmcia/if_wi.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diffs (32 lines):
diff -r 5e8d3220a670 -r 8d06cfc436d5 sys/dev/pcmcia/if_wi.c
--- a/sys/dev/pcmcia/if_wi.c Sun Apr 29 20:10:24 2001 +0000
+++ b/sys/dev/pcmcia/if_wi.c Sun Apr 29 20:12:01 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_wi.c,v 1.59 2001/03/18 21:13:12 ichiro Exp $ */
+/* $NetBSD: if_wi.c,v 1.60 2001/04/29 20:12:01 christos Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
@@ -403,10 +403,10 @@
sc->sc_dev.dv_xname);
goto ioalloc_failed;
}
+ printf("%s:", sc->sc_dev.dv_xname);
if (pcmcia_io_map(sc->sc_pf, PCMCIA_WIDTH_IO16, 0,
WI_IOSIZ, &sc->sc_pcioh, &sc->sc_iowin) != 0) {
- printf("%s: can't map i/o space\n",
- sc->sc_dev.dv_xname);
+ printf(" can't map i/o space\n");
goto iomap_failed;
}
sc->wi_btag = sc->sc_pcioh.iot;
@@ -447,8 +447,7 @@
goto bad_enaddr;
}
- printf("%s: 802.11 address %s\n", sc->sc_dev.dv_xname,
- ether_sprintf(sc->sc_macaddr));
+ printf(", 802.11 address %s\n", ether_sprintf(sc->sc_macaddr));
memcpy(ifp->if_xname, sc->sc_dev.dv_xname, IFNAMSIZ);
ifp->if_softc = sc;
Home |
Main Index |
Thread Index |
Old Index