mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 18:47:22 +00:00
Fixed "Watchdog Timer Actions" display
- Added mask to avoid wtd_action_string overrun
This commit is contained in:
parent
b1cef77bcf
commit
f8b3d70c13
@ -609,7 +609,7 @@ ipmi_mc_get_watchdog(struct ipmi_intf * intf)
|
||||
printf("Watchdog Timer Is: %s\n",
|
||||
wdt_res->timer_use & 0x40 ? "Started/Running" : "Stopped");
|
||||
printf("Watchdog Timer Actions: %s (0x%02x)\n",
|
||||
wdt_action_string[wdt_res->timer_actions], wdt_res->timer_actions);
|
||||
wdt_action_string[(wdt_res->timer_actions&0x07)], wdt_res->timer_actions);
|
||||
printf("Pre-timeout interval: %d seconds\n", wdt_res->pre_timeout);
|
||||
printf("Timer Expiration Flags: 0x%02x\n", wdt_res->timer_use_exp);
|
||||
printf("Initial Countdown: %i sec\n",
|
||||
|
Loading…
x
Reference in New Issue
Block a user