mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 18:47:22 +00:00
3600907 defined value for "Chassis may not support Force Identify"
This commit is contained in:
parent
3f53760062
commit
091ba2ea58
@ -130,8 +130,8 @@ ipmi_chassis_identify(struct ipmi_intf * intf, char * arg)
|
|||||||
int rc = (-3);
|
int rc = (-3);
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
uint8_t interval;
|
uint8_t interval = 0;
|
||||||
uint8_t force_on;
|
uint8_t force_on = 0;
|
||||||
} identify_data;
|
} identify_data;
|
||||||
|
|
||||||
memset(&req, 0, sizeof(req));
|
memset(&req, 0, sizeof(req));
|
||||||
@ -140,11 +140,8 @@ ipmi_chassis_identify(struct ipmi_intf * intf, char * arg)
|
|||||||
|
|
||||||
if (arg != NULL) {
|
if (arg != NULL) {
|
||||||
if (strncmp(arg, "force", 5) == 0) {
|
if (strncmp(arg, "force", 5) == 0) {
|
||||||
identify_data.interval = 0;
|
|
||||||
identify_data.force_on = 1;
|
identify_data.force_on = 1;
|
||||||
} else {
|
} else {
|
||||||
identify_data.interval = 0;
|
|
||||||
identify_data.force_on = 0;
|
|
||||||
if ( (rc = str2uchar(arg, &identify_data.interval)) != 0) {
|
if ( (rc = str2uchar(arg, &identify_data.interval)) != 0) {
|
||||||
if (rc == (-2)) {
|
if (rc == (-2)) {
|
||||||
lprintf(LOG_ERR, "Invalid interval given.");
|
lprintf(LOG_ERR, "Invalid interval given.");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user