mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-11 19:17:22 +00:00
add header interface printing
This commit is contained in:
parent
f6495ddf0e
commit
bbf1909161
@ -81,6 +81,8 @@ char * ipmi_intf_print(void)
|
|||||||
struct ipmi_intf ** intf;
|
struct ipmi_intf ** intf;
|
||||||
int def = 1;
|
int def = 1;
|
||||||
|
|
||||||
|
printf("Interfaces:\n");
|
||||||
|
|
||||||
for (intf = ipmi_intf_table; intf && *intf; intf++) {
|
for (intf = ipmi_intf_table; intf && *intf; intf++) {
|
||||||
printf("\t%-12s %s", (*intf)->name, (*intf)->desc);
|
printf("\t%-12s %s", (*intf)->name, (*intf)->desc);
|
||||||
if (def) {
|
if (def) {
|
||||||
@ -89,6 +91,7 @@ char * ipmi_intf_print(void)
|
|||||||
}
|
}
|
||||||
printf("\n");
|
printf("\n");
|
||||||
}
|
}
|
||||||
|
printf("\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Load an interface from the interface table above
|
/* Load an interface from the interface table above
|
||||||
|
Loading…
x
Reference in New Issue
Block a user