summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorAlexander Yurchenko <grange@cvs.openbsd.org>2009-03-01 15:35:11 +0000
committerAlexander Yurchenko <grange@cvs.openbsd.org>2009-03-01 15:35:11 +0000
commit967842949fe40a3a25d22769dd57c9147f45fb31 (patch)
tree2e48c0597f848c7f9076de309e42fa0ef617c446 /sys
parent0ef108c216367679e810f197c9f98722f63dde4b (diff)
- add missing letoh32
- tweak product string
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/ips.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/ips.c b/sys/dev/pci/ips.c
index 2ba4188d4f5..abb5105a5d4 100644
--- a/sys/dev/pci/ips.c
+++ b/sys/dev/pci/ips.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ips.c,v 1.48 2009/02/19 16:06:56 grange Exp $ */
+/* $OpenBSD: ips.c,v 1.49 2009/03/01 15:35:10 grange Exp $ */
/*
* Copyright (c) 2006, 2007, 2009 Alexander Yurchenko <grange@openbsd.org>
@@ -755,7 +755,7 @@ ips_scsi_cmd(struct scsi_xfer *xs)
inq.additional_length = 32;
strlcpy(inq.vendor, "IBM", sizeof(inq.vendor));
snprintf(inq.product, sizeof(inq.product),
- "RAID%d #%02d", drive->raid, target);
+ "LD%d RAID%d", target, drive->raid);
strlcpy(inq.revision, "1.0", sizeof(inq.revision));
memcpy(xs->data, &inq, MIN(xs->datalen, sizeof(inq)));
break;
@@ -1261,7 +1261,7 @@ ips_copperhead_status(struct ips_softc *sc)
sc->sc_sqtail = sqtail;
if (++sc->sc_sqidx == IPS_MAXCMDS)
sc->sc_sqidx = 0;
- status = sc->sc_sqbuf[sc->sc_sqidx];
+ status = letoh32(sc->sc_sqbuf[sc->sc_sqidx]);
bus_space_write_4(sc->sc_iot, sc->sc_ioh, IPS_REG_SQT, sqtail);
return (status);