diff options
| author | Matt Jacob <mjacob@FreeBSD.org> | 1998-12-05 00:07:04 +0000 |
|---|---|---|
| committer | Matt Jacob <mjacob@FreeBSD.org> | 1998-12-05 00:07:04 +0000 |
| commit | 2fa86a2b839377d971e9a9a655243ccb427cc546 (patch) | |
| tree | bb01995167dd9a5013412acb5a84032d43e69991 /sys/dev/isp | |
| parent | 2127f26023a9be443e05b592b35c77b454ba8f77 (diff) | |
Notes
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 f22cfe17e719..8619d496ef97 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); |
