diff options
author | Alexander Yurchenko <grange@cvs.openbsd.org> | 2009-03-12 21:20:06 +0000 |
---|---|---|
committer | Alexander Yurchenko <grange@cvs.openbsd.org> | 2009-03-12 21:20:06 +0000 |
commit | a1924f068ec6a697eef08885804e89d4c3893f80 (patch) | |
tree | 656df4b62024a41b786bd83b84f7eee0454b9b83 /sys/dev | |
parent | 201f32a64c6dec1826aeec0b8187be486b643613 (diff) |
In the most common case -- array failure -- move error message under
debug not to spam dmesg, bioctl and sysctl hw.sensors will tell you
enough.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/ips.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/dev/pci/ips.c b/sys/dev/pci/ips.c index 443eebb421c..11faccad127 100644 --- a/sys/dev/pci/ips.c +++ b/sys/dev/pci/ips.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ips.c,v 1.60 2009/03/12 21:00:41 grange Exp $ */ +/* $OpenBSD: ips.c,v 1.61 2009/03/12 21:20:05 grange Exp $ */ /* * Copyright (c) 2006, 2007, 2009 Alexander Yurchenko <grange@openbsd.org> @@ -1276,6 +1276,12 @@ ips_error(struct ips_softc *sc, struct ips_ccb *ccb) if (gsc == IPS_STAT_OK) return (0); + if (gsc == IPS_STAT_LDERR) { + DPRINTF(IPS_D_ERR, ("%s: ld%d error, stat 0x%02x, " + "estat 0x%02x\n", sc->sc_dev.dv_xname, cmd->drive, + ccb->c_stat, ccb->c_estat)); + return (EIO); + } if (xs) sc_print_addr(xs->sc_link); |