Be consistent among ethernet drivers on the convention for printing ethernet
addresses. NFC
This commit is contained in:
parent
39b3d27f91
commit
7ffbd42311
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: sun4i_emac.c,v 1.4 2018/06/26 06:47:58 msaitoh Exp $ */
|
||||
/* $NetBSD: sun4i_emac.c,v 1.5 2018/07/18 23:10:27 sevan Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2013-2017 The NetBSD Foundation, Inc.
|
||||
|
@ -31,7 +31,7 @@
|
|||
|
||||
#include <sys/cdefs.h>
|
||||
|
||||
__KERNEL_RCSID(1, "$NetBSD: sun4i_emac.c,v 1.4 2018/06/26 06:47:58 msaitoh Exp $");
|
||||
__KERNEL_RCSID(1, "$NetBSD: sun4i_emac.c,v 1.5 2018/07/18 23:10:27 sevan Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/bus.h>
|
||||
|
@ -333,7 +333,7 @@ sun4i_emac_attach(device_t parent, device_t self, void *aux)
|
|||
enaddr[4] = a0 >> 8;
|
||||
enaddr[5] = a0 >> 0;
|
||||
}
|
||||
aprint_normal_dev(self, "Ethernet address: %s\n", ether_sprintf(enaddr));
|
||||
aprint_normal_dev(self, "Ethernet address %s\n", ether_sprintf(enaddr));
|
||||
|
||||
snprintf(ifp->if_xname, IFNAMSIZ, EMAC_IFNAME, device_unit(self));
|
||||
ifp->if_softc = sc;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: if_mbe_g2.c,v 1.8 2011/07/19 15:52:30 dyoung Exp $ */
|
||||
/* $NetBSD: if_mbe_g2.c,v 1.9 2018/07/18 23:10:27 sevan Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2002 Christian Groessler
|
||||
|
@ -64,7 +64,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: if_mbe_g2.c,v 1.8 2011/07/19 15:52:30 dyoung Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: if_mbe_g2.c,v 1.9 2018/07/18 23:10:27 sevan Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -171,7 +171,7 @@ mbe_g2_detect(bus_space_tag_t iot, bus_space_handle_t ioh, uint8_t *enaddr)
|
|||
mb86965_read_eeprom(iot, ioh, eeprom);
|
||||
memcpy(enaddr, eeprom, ETHER_ADDR_LEN);
|
||||
|
||||
DPRINTF("Ethernet address: %s\n", ether_sprintf(enaddr));
|
||||
DPRINTF("Ethernet address %s\n", ether_sprintf(enaddr));
|
||||
|
||||
/* Make sure we got a valid station address. */
|
||||
if ((enaddr[0] & 0x03) != 0x00 ||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: sbmac.c,v 1.50 2018/06/26 06:47:59 msaitoh Exp $ */
|
||||
/* $NetBSD: sbmac.c,v 1.51 2018/07/18 23:10:27 sevan Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright 2000, 2001, 2004
|
||||
|
@ -33,7 +33,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: sbmac.c,v 1.50 2018/06/26 06:47:59 msaitoh Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: sbmac.c,v 1.51 2018/07/18 23:10:27 sevan Exp $");
|
||||
|
||||
#include "opt_inet.h"
|
||||
#include "opt_ns.h"
|
||||
|
@ -2303,7 +2303,7 @@ sbmac_attach(device_t parent, device_t self, void *aux)
|
|||
*/
|
||||
aprint_normal(": Ethernet%s\n",
|
||||
sc->sbm_pass3_dma ? ", using unaligned tx DMA" : "");
|
||||
aprint_normal_dev(self, "Ethernet address: %s\n", ether_sprintf(eaddr));
|
||||
aprint_normal_dev(self, "Ethernet address %s\n", ether_sprintf(eaddr));
|
||||
|
||||
|
||||
/*
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: nextrom.c,v 1.26 2018/03/08 03:12:02 mrg Exp $ */
|
||||
/* $NetBSD: nextrom.c,v 1.27 2018/07/18 23:10:27 sevan Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1998 Darrin B. Jewell
|
||||
* All rights reserved.
|
||||
|
@ -25,7 +25,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: nextrom.c,v 1.26 2018/03/08 03:12:02 mrg Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: nextrom.c,v 1.27 2018/07/18 23:10:27 sevan Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_serial.h"
|
||||
|
@ -354,7 +354,7 @@ next68k_bootargs(unsigned char **args)
|
|||
*/
|
||||
{
|
||||
int j;
|
||||
ROM_PUTS("Ethernet address: ");
|
||||
ROM_PUTS("Ethernet address ");
|
||||
for (j = 0; j < 6; j++) {
|
||||
RELOC(rom_enetaddr[j], uint8_t) =
|
||||
MONRELOC(uint8_t *, MG_clientetheraddr)[j];
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: dwc_gmac.c,v 1.51 2018/06/30 16:27:48 jmcneill Exp $ */
|
||||
/* $NetBSD: dwc_gmac.c,v 1.52 2018/07/18 23:10:27 sevan Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2013, 2014 The NetBSD Foundation, Inc.
|
||||
|
@ -41,7 +41,7 @@
|
|||
|
||||
#include <sys/cdefs.h>
|
||||
|
||||
__KERNEL_RCSID(1, "$NetBSD: dwc_gmac.c,v 1.51 2018/06/30 16:27:48 jmcneill Exp $");
|
||||
__KERNEL_RCSID(1, "$NetBSD: dwc_gmac.c,v 1.52 2018/07/18 23:10:27 sevan Exp $");
|
||||
|
||||
/* #define DWC_GMAC_DEBUG 1 */
|
||||
|
||||
|
@ -191,7 +191,7 @@ dwc_gmac_attach(struct dwc_gmac_softc *sc, uint32_t mii_clk)
|
|||
if (dwc_gmac_reset(sc) != 0)
|
||||
return ENXIO; /* not much to cleanup, haven't attached yet */
|
||||
dwc_gmac_write_hwaddr(sc, enaddr);
|
||||
aprint_normal_dev(sc->sc_dev, "Ethernet address: %s\n",
|
||||
aprint_normal_dev(sc->sc_dev, "Ethernet address %s\n",
|
||||
ether_sprintf(enaddr));
|
||||
|
||||
/*
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: if_kse.c,v 1.32 2018/06/26 06:48:01 msaitoh Exp $ */
|
||||
/* $NetBSD: if_kse.c,v 1.33 2018/07/18 23:10:28 sevan Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2006 The NetBSD Foundation, Inc.
|
||||
|
@ -30,7 +30,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: if_kse.c,v 1.32 2018/06/26 06:48:01 msaitoh Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: if_kse.c,v 1.33 2018/07/18 23:10:28 sevan Exp $");
|
||||
|
||||
|
||||
#include <sys/param.h>
|
||||
|
@ -404,7 +404,7 @@ kse_attach(device_t parent, device_t self, void *aux)
|
|||
enaddr[3] = i; enaddr[2] = i >> 8;
|
||||
i = CSR_READ_2(sc, MARH);
|
||||
enaddr[1] = i; enaddr[0] = i >> 8;
|
||||
printf("%s: Ethernet address: %s\n",
|
||||
printf("%s: Ethernet address %s\n",
|
||||
device_xname(sc->sc_dev), ether_sprintf(enaddr));
|
||||
|
||||
/*
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: if_ti.c,v 1.104 2018/06/26 06:48:01 msaitoh Exp $ */
|
||||
/* $NetBSD: if_ti.c,v 1.105 2018/07/18 23:10:28 sevan Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1997, 1998, 1999
|
||||
|
@ -81,7 +81,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: if_ti.c,v 1.104 2018/06/26 06:48:01 msaitoh Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: if_ti.c,v 1.105 2018/07/18 23:10:28 sevan Exp $");
|
||||
|
||||
#include "opt_inet.h"
|
||||
|
||||
|
@ -1727,7 +1727,7 @@ ti_attach(device_t parent, device_t self, void *aux)
|
|||
/*
|
||||
* A Tigon chip was detected. Inform the world.
|
||||
*/
|
||||
aprint_normal_dev(self, "Ethernet address: %s\n",ether_sprintf(eaddr));
|
||||
aprint_normal_dev(self, "Ethernet address %s\n",ether_sprintf(eaddr));
|
||||
|
||||
sc->sc_dmat = pa->pa_dmat;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: if_vge.c,v 1.63 2018/06/26 06:48:01 msaitoh Exp $ */
|
||||
/* $NetBSD: if_vge.c,v 1.64 2018/07/18 23:10:28 sevan Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2004
|
||||
|
@ -35,7 +35,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: if_vge.c,v 1.63 2018/06/26 06:48:01 msaitoh Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: if_vge.c,v 1.64 2018/07/18 23:10:28 sevan Exp $");
|
||||
|
||||
/*
|
||||
* VIA Networking Technologies VT612x PCI gigabit ethernet NIC driver.
|
||||
|
@ -938,7 +938,7 @@ vge_attach(device_t parent, device_t self, void *aux)
|
|||
eaddr[4] = val & 0xff;
|
||||
eaddr[5] = val >> 8;
|
||||
|
||||
aprint_normal_dev(self, "Ethernet address: %s\n",
|
||||
aprint_normal_dev(self, "Ethernet address %s\n",
|
||||
ether_sprintf(eaddr));
|
||||
|
||||
/*
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: if_vr.c,v 1.124 2018/06/26 06:48:01 msaitoh Exp $ */
|
||||
/* $NetBSD: if_vr.c,v 1.125 2018/07/18 23:10:28 sevan Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
|
||||
|
@ -97,7 +97,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: if_vr.c,v 1.124 2018/06/26 06:48:01 msaitoh Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: if_vr.c,v 1.125 2018/07/18 23:10:28 sevan Exp $");
|
||||
|
||||
|
||||
|
||||
|
@ -1622,7 +1622,7 @@ vr_attach(device_t parent, device_t self, void *aux)
|
|||
/*
|
||||
* A Rhine chip was detected. Inform the world.
|
||||
*/
|
||||
aprint_normal_dev(self, "Ethernet address: %s\n", ether_sprintf(eaddr));
|
||||
aprint_normal_dev(self, "Ethernet address %s\n", ether_sprintf(eaddr));
|
||||
|
||||
memcpy(sc->vr_enaddr, eaddr, ETHER_ADDR_LEN);
|
||||
|
||||
|
|
Loading…
Reference in New Issue