mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 18:47:22 +00:00
gcc4 is very picky about signedness and event_type is only 7 bits. not sure if this is gcc bug or not.
This commit is contained in:
parent
e25e0b8e71
commit
6ab2eb972e
@ -232,7 +232,7 @@ ipmi_get_event_desc(struct ipmi_intf * intf, struct sel_event_record * rec, char
|
||||
return;
|
||||
*desc = NULL;
|
||||
|
||||
if ((rec->event_type >= 0x70) && (rec->event_type <= 0x7F)) {
|
||||
if ((rec->event_type >= 0x70) && (rec->event_type < 0x7F)) {
|
||||
*desc = ipmi_get_oem_desc(intf, rec);
|
||||
return;
|
||||
} else if (rec->event_type == 0x6f) {
|
||||
@ -1393,13 +1393,21 @@ int ipmi_sel_main(struct ipmi_intf * intf, int argc, char ** argv)
|
||||
}
|
||||
rc = ipmi_sel_writeraw(intf, argv[1]);
|
||||
}
|
||||
else if (strncmp(argv[0], "readraw", 7) == 0) {
|
||||
else if (strncmp(argv[0], "readraw", 7) == 0) {
|
||||
if (argc < 2) {
|
||||
lprintf(LOG_NOTICE, "usage: sel readraw <filename>");
|
||||
return 0;
|
||||
}
|
||||
rc = ipmi_sel_readraw(intf, argv[1]);
|
||||
}
|
||||
else if (strncmp(argv[0], "ereadraw", 8) == 0) {
|
||||
if (argc < 2) {
|
||||
lprintf(LOG_NOTICE, "usage: sel ereadraw <filename>");
|
||||
return 0;
|
||||
}
|
||||
sel_extended = 1;
|
||||
rc = ipmi_sel_readraw(intf, argv[1]);
|
||||
}
|
||||
else if (strncmp(argv[0], "list", 4) == 0 ||
|
||||
strncmp(argv[0], "elist", 5) == 0) {
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user