Switch to unsigned long for clock-tick printing. Cast variables to the print format.
This commit is contained in:
parent
7ebc1ba262
commit
44fc56183f
@ -51,9 +51,9 @@ unit_test_print_report(const unit_test_t *utp)
|
|||||||
printf("Result: %s\n", utp->result == unit_test_failure ?
|
printf("Result: %s\n", utp->result == unit_test_failure ?
|
||||||
"failure" : "success");
|
"failure" : "success");
|
||||||
printf("Exit point: %s:%u\n", utp->test_file, utp->exit_line);
|
printf("Exit point: %s:%u\n", utp->test_file, utp->exit_line);
|
||||||
printf("Start: %u\n", utp->start);
|
printf("Start: %lu\n", (unsigned long)utp->start);
|
||||||
printf("End: %u\n", utp->end);
|
printf("End: %lu\n", (unsigned long)utp->end);
|
||||||
printf("Duration: %u\n", utp->end - utp->start);
|
printf("Duration: %lu\n", (unsigned long)(utp->end - utp->start));
|
||||||
printf("Ticks per second: %u\n", RTIMER_SECOND);
|
printf("Ticks per second: %lu\n", (unsigned long)RTIMER_SECOND);
|
||||||
}
|
}
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
|
Loading…
Reference in New Issue
Block a user