Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 5302493 in mainline


Ignore:
Timestamp:
2017-12-21T10:36:28Z (4 years ago)
Author:
Petr Mánek <petr.manek@…>
Branches:
lfn, master
Children:
06f45cf
Parents:
dd36558
Message:

tmon: nicer error messages

Location:
uspace/app/tmon
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/tmon/stress_test.c

    rdd36558 r5302493  
    7575        int rc = usbdiag_stress_intr_in(exch, params->cycles, params->size);
    7676        if (rc) {
    77                 printf(NAME ": %s\n", str_error(rc));
     77                printf(NAME ": Test failed. %s\n", str_error(rc));
    7878                return 1;
    7979        }
     
    9191        int rc = usbdiag_stress_intr_out(exch, params->cycles, params->size);
    9292        if (rc) {
    93                 printf(NAME ": %s\n", str_error(rc));
     93                printf(NAME ": Test failed. %s\n", str_error(rc));
    9494                return 1;
    9595        }
     
    107107        int rc = usbdiag_stress_bulk_in(exch, params->cycles, params->size);
    108108        if (rc) {
    109                 printf(NAME ": %s\n", str_error(rc));
     109                printf(NAME ": Test failed. %s\n", str_error(rc));
    110110                return 1;
    111111        }
     
    123123        int rc = usbdiag_stress_bulk_out(exch, params->cycles, params->size);
    124124        if (rc) {
    125                 printf(NAME ": %s\n", str_error(rc));
     125                printf(NAME ": Test failed. %s\n", str_error(rc));
    126126                return 1;
    127127        }
  • uspace/app/tmon/test.c

    rdd36558 r5302493  
    7070        tmon_test_params_t *params = NULL;
    7171        if ((rc = ops->read_params(argc, argv, &params))) {
    72                 printf(NAME ": Reading test parameters failed.\n");
     72                printf(NAME ": Reading test parameters failed. %s\n", str_error(rc));
    7373                return 1;
    7474        }
Note: See TracChangeset for help on using the changeset viewer.