diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-05-12 02:11:54 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-05-12 02:11:54 +0000 |
commit | 3a1008eca821562647acdc0b8a06713869442e36 (patch) | |
tree | 7680524bb3d6e1d080a6329cbbcbd6b95f9b0a51 | |
parent | c80038e3a4475fb7cb5184ba7982376ebfb62a0b (diff) |
code we can read
-rw-r--r-- | sys/dev/ipmi.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/ipmi.c b/sys/dev/ipmi.c index 23bbcca9a84..e1224d4f835 100644 --- a/sys/dev/ipmi.c +++ b/sys/dev/ipmi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ipmi.c,v 1.38 2006/05/08 22:51:18 gwk Exp $ */ +/* $OpenBSD: ipmi.c,v 1.39 2006/05/12 02:11:53 deraadt Exp $ */ /* * Copyright (c) 2005 Jordan Hargrave @@ -631,7 +631,8 @@ kcs_wait(struct ipmi_softc *sc, u_int8_t mask, u_int8_t value, const char *lbl) /* Check for error state */ if ((v & KCS_STATE_MASK) == KCS_ERROR_STATE) { bmc_write(sc, _KCS_COMMAND_REGISTER, KCS_GET_STATUS); - while (bmc_read(sc, _KCS_STATUS_REGISTER) & KCS_IBF); + while (bmc_read(sc, _KCS_STATUS_REGISTER) & KCS_IBF) + ; printf(" error code: %x\n", bmc_read(sc, _KCS_DATAIN_REGISTER)); } |