You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
396 B
16 lines
396 B
15 years ago
|
--- a/admswconfig.c
|
||
|
+++ b/admswconfig.c
|
||
|
@@ -111,9 +111,9 @@ int main(int argc, char **argv)
|
||
18 years ago
|
}
|
||
|
} else {
|
||
|
/* display matrix */
|
||
|
- printf("ethX\tport0\tport1\tport2\tport3\tport4");
|
||
|
- if (info.ports == 6)
|
||
|
- printf("\tport5");
|
||
|
+ printf("ethX");
|
||
|
+ for (i = 0; i < info.ports; i++)
|
||
|
+ printf("\tport%d", i);
|
||
|
printf("\tCPU\n");
|
||
|
for (i = 0; i < info.ports; i++) {
|
||
|
printf("%d", i);
|