mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 18:47: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;
|
||||
int def = 1;
|
||||
|
||||
printf("Interfaces:\n");
|
||||
|
||||
for (intf = ipmi_intf_table; intf && *intf; intf++) {
|
||||
printf("\t%-12s %s", (*intf)->name, (*intf)->desc);
|
||||
if (def) {
|
||||
@ -89,6 +91,7 @@ char * ipmi_intf_print(void)
|
||||
}
|
||||
printf("\n");
|
||||
}
|
||||
printf("\n");
|
||||
}
|
||||
|
||||
/* Load an interface from the interface table above
|
||||
|
Loading…
x
Reference in New Issue
Block a user