Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/sunxi Print ethernet address at attach



details:   https://anonhg.NetBSD.org/src/rev/a2b80ec54d7b
branches:  trunk
changeset: 320789:a2b80ec54d7b
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Thu Jul 19 19:52:00 2018 +0000

description:
Print ethernet address at attach

diffstat:

 sys/arch/arm/sunxi/sunxi_emac.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r de24fed3fe4c -r a2b80ec54d7b sys/arch/arm/sunxi/sunxi_emac.c
--- a/sys/arch/arm/sunxi/sunxi_emac.c   Thu Jul 19 19:35:02 2018 +0000
+++ b/sys/arch/arm/sunxi/sunxi_emac.c   Thu Jul 19 19:52:00 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sunxi_emac.c,v 1.16 2018/06/30 12:36:13 jmcneill Exp $ */
+/* $NetBSD: sunxi_emac.c,v 1.17 2018/07/19 19:52:00 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2016-2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -33,7 +33,7 @@
 #include "opt_net_mpsafe.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sunxi_emac.c,v 1.16 2018/06/30 12:36:13 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunxi_emac.c,v 1.17 2018/07/19 19:52:00 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -1398,6 +1398,7 @@
 
        /* Read MAC address before resetting the chip */
        sunxi_emac_get_eaddr(sc, eaddr);
+       aprint_normal_dev(self, "Ethernet address %s\n", ether_sprintf(eaddr));
 
        /* Soft reset EMAC core */
        if (sunxi_emac_reset(sc) != 0)



Home | Main Index | Thread Index | Old Index