From 7924e052ca968399e1556dcaea4476b8ff06f419 Mon Sep 17 00:00:00 2001 From: Carol Hebert Date: Thu, 8 Jan 2009 21:07:02 +0000 Subject: [PATCH] Bernard Manjou 11/13/08 fix for Front Panel Button disable/enable status wrong mask values --- ipmitool/lib/ipmi_chassis.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ipmitool/lib/ipmi_chassis.c b/ipmitool/lib/ipmi_chassis.c index 52f629f..a33a62e 100644 --- a/ipmitool/lib/ipmi_chassis.c +++ b/ipmitool/lib/ipmi_chassis.c @@ -363,10 +363,10 @@ ipmi_chassis_status(struct ipmi_intf * intf) printf("Diag Button Disable : %s\n", (rsp->data[3] & 0x40) ? "allowed" : "not allowed"); printf("Reset Button Disable : %s\n", (rsp->data[3] & 0x20) ? "allowed" : "not allowed"); printf("Power Button Disable : %s\n", (rsp->data[3] & 0x10) ? "allowed" : "not allowed"); - printf("Sleep Button Disabled: %s\n", (rsp->data[3] & 0x80) ? "true" : "false"); - printf("Diag Button Disabled : %s\n", (rsp->data[3] & 0x40) ? "true" : "false"); - printf("Reset Button Disabled: %s\n", (rsp->data[3] & 0x20) ? "true" : "false"); - printf("Power Button Disabled: %s\n", (rsp->data[3] & 0x10) ? "true" : "false"); + printf("Sleep Button Disabled: %s\n", (rsp->data[3] & 0x08) ? "true" : "false"); + printf("Diag Button Disabled : %s\n", (rsp->data[3] & 0x04) ? "true" : "false"); + printf("Reset Button Disabled: %s\n", (rsp->data[3] & 0x02) ? "true" : "false"); + printf("Power Button Disabled: %s\n", (rsp->data[3] & 0x01) ? "true" : "false"); } }