Module Name: src
Committed By: cegger
Date: Mon May 11 20:56:59 UTC 2009
Modified Files:
src/sys/dev/pci/n8: nsp.c
Log Message:
use device_xname()
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/dev/pci/n8/nsp.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/n8/nsp.c
diff -u src/sys/dev/pci/n8/nsp.c:1.6 src/sys/dev/pci/n8/nsp.c:1.7
--- src/sys/dev/pci/n8/nsp.c:1.6 Wed May 6 10:34:33 2009
+++ src/sys/dev/pci/n8/nsp.c Mon May 11 20:56:59 2009
@@ -348,13 +348,13 @@
aprint_normal(": %s, rev. %d\n", nspp->nsp_name,
PCI_REVISION(pa->pa_class));
- printf("NetOctave Encryption Processor - %s\n", sc->device.dv_xname);
+ printf("NetOctave Encryption Processor - %s\n", device_xname(&sc->device));
n8_sessionInit(sc);
NSPcount_g = 1;
if (n8_driverInit(N8_EA_POOL_SIZE, N8_PK_POOL_SIZE)) {
- DBG(("%s: Failed driver init\n", sc->device.dv_xname));
+ DBG(("%s: Failed driver init\n", device_xname(&sc->device)));
NSPcount_g = 0;
return;
}
@@ -385,8 +385,7 @@
if (pci_mapreg_map(pa, NSP_BAR0, PCI_MAPREG_MEM_TYPE_64BIT, 0,
&sc->mem_tag, &sc->mem_handle, NULL, &sc->mem_size)) {
- aprint_error("%s: can't map mem space %d\n",
- sc->device.dv_xname, 0);
+ aprint_error_dev(&sc->device, "can't map mem space %d\n", 0);
return;
}