From 93269b7123e8f3dd46743bd7613ec7838e0e6be1 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Thu, 28 Aug 2008 02:11:04 +0000 Subject: [PATCH] - Tweak an error message. - Fix a buglet where && was used instead of & to test if OBF was set in a couple of places. MFC after: 1 week --- sys/dev/ipmi/ipmi_kcs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/ipmi/ipmi_kcs.c b/sys/dev/ipmi/ipmi_kcs.c index 4eda654548b9..1ca3298498ec 100644 --- a/sys/dev/ipmi/ipmi_kcs.c +++ b/sys/dev/ipmi/ipmi_kcs.c @@ -169,7 +169,7 @@ kcs_error(struct ipmi_softc *sc) return; } } - device_printf(sc->ipmi_dev, "KCS Error retry exhausted\n"); + device_printf(sc->ipmi_dev, "KCS: Error retry exhausted\n"); } /* @@ -555,7 +555,7 @@ ipmi_kcs_probe_align(struct ipmi_softc *sc) /* Finish out the transaction. */ /* Clear OBF */ - if (status && KCS_STATUS_OBF) + if (status & KCS_STATUS_OBF) data = INB(sc, KCS_DATA); /* 0x00 to DATA_IN */ @@ -597,7 +597,7 @@ ipmi_kcs_probe_align(struct ipmi_softc *sc) } /* Clear OBF */ - if (status && KCS_STATUS_OBF) + if (status & KCS_STATUS_OBF) data = INB(sc, KCS_DATA); } else device_printf(sc->ipmi_dev, "KCS probe: end state %x\n",