On 03/26/2012 10:11 PM, Gowda, Srinivas G wrote:
>
>
> Thanks,
> G
> srinivas_g_go...@dell.com
> DELL
Rewritten patch using macros.
Thanks,
G
srinivas_g_go...@dell.com
DELL
diff -Naurp 09-ipmitool_opensel_part5_delloem/lib/ipmi_delloem.c
10-ipmitool_opensel_part6_delloem/lib/ipmi_delloem.c
--- 09-ipmitool_opensel_part5_delloem/lib/ipmi_delloem.c 2012-04-03
17:51:35.000000000 +0530
+++ 10-ipmitool_opensel_part6_delloem/lib/ipmi_delloem.c 2012-04-03
17:51:36.000000000 +0530
@@ -2176,7 +2176,7 @@ static int ipmi_macinfo_10g (struct ipmi
uint8_t j;
uint8_t i;
- uint8_t rc;
+
uint8_t Total_No_NICs = 0;
@@ -2276,9 +2276,6 @@ static int ipmi_macinfo_11g (struct ipmi
uint8_t maxlen;
uint8_t loop_count;
uint8_t i;
- uint8_t rc;
- uint8_t LOMStatus = 0;
- uint8_t PlayingDead = 0;
@@ -2956,11 +2953,10 @@ static int ipmi_lan_get_active_nic (stru
uint8_t msg_data[30];
uint8_t input_length=0;
- uint8_t j;
input_length = 0;
- msg_data[input_length++] = 0; /*Get Status*/
+ msg_data[input_length++] = 0; /*Get current LOM*/
msg_data[input_length++] = 0; /*Reserved*/
msg_data[input_length++] = 0; /*Reserved*/
diff -Naurp 09-ipmitool_opensel_part5_delloem/lib/ipmi_sel.c
10-ipmitool_opensel_part6_delloem/lib/ipmi_sel.c
--- 09-ipmitool_opensel_part5_delloem/lib/ipmi_sel.c 2012-04-03
18:09:27.000000000 +0530
+++ 10-ipmitool_opensel_part6_delloem/lib/ipmi_sel.c 2012-04-03
17:51:36.000000000 +0530
@@ -952,6 +952,55 @@ char * get_dell_evt_desc(struct ipmi_int
}
}
break;
+ case 0x0F:
+ if((EVT1_OFFSET(data1)== 0x0F) &&
EVT1_OEM2_VALID(data1))
+ {
+ switch(data2)
+ {
+ case 0x80:
+ snprintf(desc,
SIZE_OF_DESC, "No memory is detected.");break;
+ case 0x81:
+
snprintf(desc,SIZE_OF_DESC, "Memory is detected but is not
configurable.");break;
+ case 0x82:
+ snprintf(desc,
SIZE_OF_DESC, "Memory is configured but not usable.");break;
+ case 0x83:
+ snprintf(desc,
SIZE_OF_DESC, "System BIOS shadow failed.");break;
+ case 0x84:
+ snprintf(desc,
SIZE_OF_DESC, "CMOS failed.");break;
+ case 0x85:
+ snprintf(desc,
SIZE_OF_DESC, "DMA controller failed.");break;
+ case 0x86:
+ snprintf(desc,
SIZE_OF_DESC, "Interrupt controller failed.");break;
+ case 0x87:
+ snprintf(desc,
SIZE_OF_DESC, "Timer refresh failed.");break;
+ case 0x88:
+ snprintf(desc,
SIZE_OF_DESC, "Programmable interval timer error.");break;
+ case 0x89:
+ snprintf(desc,
SIZE_OF_DESC, "Parity error.");break;
+ case 0x8A:
+ snprintf(desc,
SIZE_OF_DESC, "SIO failed.");break;
+ case 0x8B:
+ snprintf(desc,
SIZE_OF_DESC, "Keyboard controller failed.");break;
+ case 0x8C:
+ snprintf(desc,
SIZE_OF_DESC, "System management interrupt initialization failed.");break;
+ case 0x8D:
+ snprintf(desc,
SIZE_OF_DESC, "TXT-SX Error.");break;
+ case 0xC0:
+ snprintf(desc,
SIZE_OF_DESC, "Shutdown test failed.");break;
+ case 0xC1:
+ snprintf(desc,
SIZE_OF_DESC, "BIOS POST memory test failed.");break;
+ case 0xC2:
+ snprintf(desc,
SIZE_OF_DESC, "RAC configuration failed.");break;
+ case 0xC3:
+ snprintf(desc,
SIZE_OF_DESC, "CPU configuration failed.");break;
+ case 0xC4:
+ snprintf(desc,
SIZE_OF_DESC, "Incorrect memory configuration.");break;
+ case 0xFE:
+ snprintf(desc,
SIZE_OF_DESC, "General failure after video.");
+ break;
+ }
+ }
+ break;
default:
break;
------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
Ipmitool-devel mailing list
Ipmitool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipmitool-devel