Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/tester/tester.c

    rffdd2b9 r19f857a  
    5151#include "print/print3.def"
    5252#include "print/print4.def"
    53 #include "print/print5.def"
    5453#include "console/console1.def"
    5554#include "stdio/stdio1.def"
     
    6463#include "loop/loop1.def"
    6564#include "mm/malloc1.def"
    66 #include "hw/serial/serial1.def"
    6765        {NULL, NULL, NULL, false}
    6866};
     
    112110        }
    113111       
    114         unsigned int _len = (unsigned int) len;
    115         if ((_len != len) || (((int) _len) < 0)) {
    116                 printf("Command length overflow\n");
    117                 return;
    118         }
     112        for (test = tests; test->name != NULL; test++)
     113                printf("%-*s %s%s\n", len, test->name, test->desc, (test->safe ? "" : " (unsafe)"));
    119114       
    120         for (test = tests; test->name != NULL; test++)
    121                 printf("%-*s %s%s\n", _len, test->name, test->desc,
    122                     (test->safe ? "" : " (unsafe)"));
    123        
    124         printf("%-*s Run all safe tests\n", _len, "*");
     115        printf("%-*s Run all safe tests\n", len, "*");
    125116}
    126117
Note: See TracChangeset for help on using the changeset viewer.