diff options
author | mjacob <mjacob@FreeBSD.org> | 1998-12-05 00:07:04 +0000 |
---|---|---|
committer | mjacob <mjacob@FreeBSD.org> | 1998-12-05 00:07:04 +0000 |
commit | 0ff3e17e018bfaff71005aa579f25b97c5082bdc (patch) | |
tree | c6dec228af3187cf65d7b794bfc3fa0fa995ef8a /sys/dev/isp | |
parent | 982e80577dd08945aa2345ebe35e3f50eef9eb48 (diff) | |
download | FreeBSD-src-0ff3e17e018bfaff71005aa579f25b97c5082bdc.zip FreeBSD-src-0ff3e17e018bfaff71005aa579f25b97c5082bdc.tar.gz |
trivial header fix
Diffstat (limited to 'sys/dev/isp')
-rw-r--r-- | sys/dev/isp/isp_pci.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/dev/isp/isp_pci.c b/sys/dev/isp/isp_pci.c index f22cfe1..8619d49 100644 --- a/sys/dev/isp/isp_pci.c +++ b/sys/dev/isp/isp_pci.c @@ -1,4 +1,5 @@ /* $FreeBSD$ */ +/* isp_pci.c 1.18 */ /* * PCI specific probe and attach routines for Qlogic ISP SCSI adapters. * FreeBSD Version. @@ -270,7 +271,11 @@ isp_pci_attach(config_id, unit) pcs->pci_st == IO_SPACE_MAPPING? "I/O" : "Memory"); isp = &pcs->pci_isp; +#if __FreeBSD_version >= 300006 (void) snprintf(isp->isp_name, sizeof(isp->isp_name), "isp%d", unit); +#else + (void) sprintf(isp->isp_name, "isp%d", unit); +#endif isp->isp_osinfo.unit = unit; data = pci_conf_read(config_id, PCI_ID_REG); |