diff options
-rw-r--r-- | libflash/ipmi-hiomap.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libflash/ipmi-hiomap.c b/libflash/ipmi-hiomap.c index 8a7a1af..856d827 100644 --- a/libflash/ipmi-hiomap.c +++ b/libflash/ipmi-hiomap.c @@ -469,12 +469,11 @@ static void hiomap_event(uint8_t events, void *context) { struct ipmi_hiomap *ctx = context; + prlog(PR_DEBUG, "Received events: 0x%x\n", events); + lock(&ctx->lock); - ctx->bmc_state = events; + ctx->bmc_state |= events; ctx->update = true; - - if (events & (HIOMAP_E_PROTOCOL_RESET | HIOMAP_E_WINDOW_RESET)) - ctx->window_state = closed_window; unlock(&ctx->lock); } |