diff options
author | Alexander Amelkin <alexander@amelkin.msk.ru> | 2018-06-17 12:13:35 +0300 |
---|---|---|
committer | Alexander Amelkin <alexander@amelkin.msk.ru> | 2018-06-17 12:13:35 +0300 |
commit | e49a20eecea2d06f70bba6807919ac48207bdcb2 (patch) | |
tree | 9f4c0b7fa769c543a9195e75b64ec7c28032877a /lib/ipmi_mc.c | |
parent | 6c00d448d58ecbad7725a0430b9c804e4c09cb45 (diff) | |
download | ipmitool-e49a20eecea2d06f70bba6807919ac48207bdcb2.tar.gz |
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.
Diffstat (limited to 'lib/ipmi_mc.c')
-rw-r--r-- | lib/ipmi_mc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ipmi_mc.c b/lib/ipmi_mc.c index 2f8d19a..94fe446 100644 --- a/lib/ipmi_mc.c +++ b/lib/ipmi_mc.c @@ -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[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; |