Module Name: src
Committed By: jmcneill
Date: Thu Jul 19 19:52:00 UTC 2018
Modified Files:
src/sys/arch/arm/sunxi: sunxi_emac.c
Log Message:
Print ethernet address at attach
To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/sys/arch/arm/sunxi/sunxi_emac.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/arm/sunxi/sunxi_emac.c
diff -u src/sys/arch/arm/sunxi/sunxi_emac.c:1.16 src/sys/arch/arm/sunxi/sunxi_emac.c:1.17
--- src/sys/arch/arm/sunxi/sunxi_emac.c:1.16 Sat Jun 30 12:36:13 2018
+++ src/sys/arch/arm/sunxi/sunxi_emac.c Thu Jul 19 19:52:00 2018
@@ -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 <[email protected]>
@@ -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 @@ sunxi_emac_attach(device_t parent, devic
/* 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)