2
0

001-matrix.patch 396 B

123456789101112131415
  1. --- a/admswconfig.c
  2. +++ b/admswconfig.c
  3. @@ -111,9 +111,9 @@ int main(int argc, char **argv)
  4. }
  5. } else {
  6. /* display matrix */
  7. - printf("ethX\tport0\tport1\tport2\tport3\tport4");
  8. - if (info.ports == 6)
  9. - printf("\tport5");
  10. + printf("ethX");
  11. + for (i = 0; i < info.ports; i++)
  12. + printf("\tport%d", i);
  13. printf("\tCPU\n");
  14. for (i = 0; i < info.ports; i++) {
  15. printf("%d", i);