diff options
author | sos <sos@FreeBSD.org> | 2006-05-11 10:43:08 +0000 |
---|---|---|
committer | sos <sos@FreeBSD.org> | 2006-05-11 10:43:08 +0000 |
commit | ddd14f2cd2c6b7db82c8caa0c1bb7a4fcc5676cb (patch) | |
tree | 6f3c936c94bcff31b96665abaf7bbae34df694c4 /sys/dev/ata | |
parent | 8c3ceaf20b4094372ef0254ab43a0bdd91732e3e (diff) | |
download | FreeBSD-src-ddd14f2cd2c6b7db82c8caa0c1bb7a4fcc5676cb.zip FreeBSD-src-ddd14f2cd2c6b7db82c8caa0c1bb7a4fcc5676cb.tar.gz |
Fix probe printing of highpoint and promise controllers.
Diffstat (limited to 'sys/dev/ata')
-rw-r--r-- | sys/dev/ata/ata-chipset.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/dev/ata/ata-chipset.c b/sys/dev/ata/ata-chipset.c index 4a41df4..aed0720 100644 --- a/sys/dev/ata/ata-chipset.c +++ b/sys/dev/ata/ata-chipset.c @@ -1417,15 +1417,15 @@ ata_highpoint_ident(device_t dev) if (!(idx = ata_match_chip(dev, ids))) return ENXIO; - strcpy(buffer, idx->text); + strcpy(buffer, "HighPoint "); + strcat(buffer, idx->text); if (idx->cfg1 == HPT374) { if (pci_get_function(dev) == 0) strcat(buffer, " (channel 0+1)"); - else if (pci_get_function(dev) == 1) + if (pci_get_function(dev) == 1) strcat(buffer, " (channel 2+3)"); } - sprintf(buffer, "HighPoint %s %s controller", - buffer, ata_mode2str(idx->max_dma)); + sprintf(buffer, "%s %s controller", buffer, ata_mode2str(idx->max_dma)); device_set_desc_copy(dev, buffer); ctlr->chip = idx; ctlr->chipinit = ata_highpoint_chipinit; @@ -2989,7 +2989,6 @@ ata_promise_ident(device_t dev) } else if (pci_get_slot(dev) == 2 && start && end) { bus_set_resource(dev, SYS_RES_IRQ, 0, start, end); - start = end = 0; strcat(buffer, " (channel 2+3)"); } else { |