mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 18:47:22 +00:00
Cleanup formatting in ipmi_lan_set_vlan_id() and ipmi_lan_set_vlan_priority()
This commit is contained in:
parent
512ec41ab4
commit
f35ed010f0
@ -1311,7 +1311,7 @@ get_cmdline_ipaddr(char * arg, uint8_t * buf)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
ipmi_lan_set_vlan_id(struct ipmi_intf * intf, uint8_t chan, char *string)
|
ipmi_lan_set_vlan_id(struct ipmi_intf *intf, uint8_t chan, char *string)
|
||||||
{
|
{
|
||||||
uint8_t data[2];
|
uint8_t data[2];
|
||||||
int rc;
|
int rc;
|
||||||
@ -1329,7 +1329,7 @@ ipmi_lan_set_vlan_id(struct ipmi_intf * intf, uint8_t chan, char *string)
|
|||||||
|
|
||||||
if (id < 1 || id > 4094) {
|
if (id < 1 || id > 4094) {
|
||||||
lprintf(LOG_NOTICE, "VLAN ID must be between 1 and 4094.");
|
lprintf(LOG_NOTICE, "VLAN ID must be between 1 and 4094.");
|
||||||
return -1;
|
return (-1);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
data[0] = (uint8_t)id;
|
data[0] = (uint8_t)id;
|
||||||
@ -1341,7 +1341,7 @@ ipmi_lan_set_vlan_id(struct ipmi_intf * intf, uint8_t chan, char *string)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
ipmi_lan_set_vlan_priority(struct ipmi_intf * intf, uint8_t chan, char *string)
|
ipmi_lan_set_vlan_priority(struct ipmi_intf *intf, uint8_t chan, char *string)
|
||||||
{
|
{
|
||||||
uint8_t data;
|
uint8_t data;
|
||||||
int rc;
|
int rc;
|
||||||
@ -1353,7 +1353,7 @@ ipmi_lan_set_vlan_priority(struct ipmi_intf * intf, uint8_t chan, char *string)
|
|||||||
|
|
||||||
if (priority < 0 || priority > 7) {
|
if (priority < 0 || priority > 7) {
|
||||||
lprintf(LOG_NOTICE, "VLAN priority must be between 0 and 7.");
|
lprintf(LOG_NOTICE, "VLAN priority must be between 0 and 7.");
|
||||||
return -1;
|
return (-1);
|
||||||
}
|
}
|
||||||
data = (uint8_t)priority;
|
data = (uint8_t)priority;
|
||||||
rc = set_lan_param(intf, chan, IPMI_LANP_VLAN_PRIORITY, &data, 1);
|
rc = set_lan_param(intf, chan, IPMI_LANP_VLAN_PRIORITY, &data, 1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user