Module Name:    src
Committed By:   jmcneill
Date:           Mon Feb 21 14:43:58 UTC 2011

Modified Files:
        src/sys/dev/pci: if_ath_pci.c

Log Message:
print the device name at attach, like so:

ath0 at pci4 dev 0 function 0: Atheros 9280


To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/sys/dev/pci/if_ath_pci.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/dev/pci/if_ath_pci.c
diff -u src/sys/dev/pci/if_ath_pci.c:1.40 src/sys/dev/pci/if_ath_pci.c:1.41
--- src/sys/dev/pci/if_ath_pci.c:1.40	Sun Feb 20 03:56:45 2011
+++ src/sys/dev/pci/if_ath_pci.c	Mon Feb 21 14:43:58 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_ath_pci.c,v 1.40 2011/02/20 03:56:45 jmcneill Exp $	*/
+/*	$NetBSD: if_ath_pci.c,v 1.41 2011/02/21 14:43:58 jmcneill Exp $	*/
 
 /*-
  * Copyright (c) 2002-2005 Sam Leffler, Errno Consulting
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ath_pci.c,v 1.40 2011/02/20 03:56:45 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ath_pci.c,v 1.41 2011/02/21 14:43:58 jmcneill Exp $");
 
 /*
  * PCI/Cardbus front-end for the Atheros Wireless LAN controller driver.
@@ -128,6 +128,7 @@
 	struct pci_attach_args *pa = aux;
 	pci_chipset_tag_t pc = pa->pa_pc;
 	const char *intrstr = NULL;
+	const char *devname;
 	pcireg_t mem_type;
 
 	sc->sc_dev = self;
@@ -135,7 +136,8 @@
 	psc->sc_pc = pc;
 	psc->sc_tag = pa->pa_tag;
 
-	aprint_normal("\n");
+	devname = ath_hal_probe(PCI_VENDOR(pa->pa_id), PCI_PRODUCT(pa->pa_id));
+	aprint_normal(": %s\n", devname);
 
 	if (!ath_pci_setup(psc))
 		goto bad;

Reply via email to