mc: watchdog set: Fix intr setting

The previous commit contained a bug due to which
the `intr` option value was never passed to the BMC.
This commit is contained in:
Alexander Amelkin 2018-06-17 12:13:35 +03:00
parent 6c00d448d5
commit e49a20eece
No known key found for this signature in database
GPG Key ID: E893587B5B74178D

View File

@ -890,7 +890,7 @@ ipmi_mc_set_watchdog(struct ipmi_intf * intf, int argc, char *argv[])
msg_data[0] |= use & IPMI_WDT_USE_MASK; msg_data[0] |= use & IPMI_WDT_USE_MASK;
msg_data[1] = (intr & IPMI_WDT_INTR_MASK) << IPMI_WDT_INTR_SHIFT; msg_data[1] = (intr & IPMI_WDT_INTR_MASK) << IPMI_WDT_INTR_SHIFT;
msg_data[1] = action & IPMI_WDT_ACTION_MASK; msg_data[1] |= action & IPMI_WDT_ACTION_MASK;
msg_data[2] = pretimeout; msg_data[2] = pretimeout;