tests: kernel: timer: Fix TC_PRINT format specifiers

Pass Zephyr type format specifiers to TC_PRINT().

Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
This commit is contained in:
Ramakrishna Pallala 2017-11-03 09:33:01 -04:00 committed by Andrew Boie
parent d8f85d736d
commit a44e88df2a

View file

@ -5,7 +5,6 @@
*/
#include <zephyr.h>
#include <inttypes.h>
#include <tc_util.h>
int test_frequency(void)
@ -57,9 +56,8 @@ void main(void)
if (t_now < t_last) {
diff = t_now - t_last;
TC_PRINT("diff = %" PRId32 " (t_last = %" PRIu32
" : t_now = %" PRIu32 "); i = %u\n",
diff, t_last, t_now, i);
TC_PRINT("diff = %d (t_last = %u : t_now = %u);"
"i = %u\n", diff, t_last, t_now, i);
errors++;
}
t_last = t_now;