Add the matrix fix from #2127

SVN-Revision: 8405
This commit is contained in:
Florian Fainelli 2007-08-12 12:10:30 +00:00
parent 0860346ff0
commit 207864d39d
1 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,15 @@
--- admswconfig-0.1.orig/admswconfig.c 2007-05-30 12:55:35.000000000 +0200
+++ admswconfig-0.1/admswconfig.c 2007-07-24 19:22:14.000000000 +0200
@@ -111,9 +111,9 @@
}
} 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);