mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-11 19:17:22 +00:00
don't bail on SDR version 0x02
This commit is contained in:
parent
f5c8042629
commit
32cba5f174
@ -1334,9 +1334,15 @@ ipmi_sdr_start(struct ipmi_intf * intf)
|
|||||||
|
|
||||||
memcpy(&sdr_info, rsp->data, sizeof(sdr_info));
|
memcpy(&sdr_info, rsp->data, sizeof(sdr_info));
|
||||||
|
|
||||||
/* version should be 0x01 for IPMIv1.0 and 0x51 for IPMI1.5 */
|
/* IPMIv1.0 == 0x01
|
||||||
if ((sdr_info.version != 0x51) && (sdr_info.version != 0x01)) {
|
* IPMIv1.5 == 0x51
|
||||||
lprintf(LOG_WARN, "WARNING: SDR repository version mismatch");
|
* IPMIv2.0 == 0x02
|
||||||
|
*/
|
||||||
|
if ((sdr_info.version != 0x51) &&
|
||||||
|
(sdr_info.version != 0x01) &&
|
||||||
|
(sdr_info.version != 0x02)) {
|
||||||
|
lprintf(LOG_WARN, "WARNING: Unknown SDR repository "
|
||||||
|
"version 0x%02x", sdr_info.version);
|
||||||
}
|
}
|
||||||
|
|
||||||
itr->total = sdr_info.count;
|
itr->total = sdr_info.count;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user