mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-07-02 02:33:37 +00:00
__ipmi_sel_savelist_entries should return 0 instead of -1 if the SEL is
empty. An empty SEL shouldn't be an error condition when listing the SEL.
This commit is contained in:
@ -1281,7 +1281,7 @@ __ipmi_sel_savelist_entries(struct ipmi_intf * intf, int count, const char * sav
|
|||||||
|
|
||||||
if (rsp->data[1] == 0 && rsp->data[2] == 0) {
|
if (rsp->data[1] == 0 && rsp->data[2] == 0) {
|
||||||
lprintf(LOG_ERR, "SEL has no entries");
|
lprintf(LOG_ERR, "SEL has no entries");
|
||||||
return -1;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
memset(&req, 0, sizeof(req));
|
memset(&req, 0, sizeof(req));
|
||||||
|
Reference in New Issue
Block a user