diff --git a/tests/sizeof_tcb/main.c b/tests/sizeof_tcb/main.c index fe30ab011d..66f4650cff 100644 --- a/tests/sizeof_tcb/main.c +++ b/tests/sizeof_tcb/main.c @@ -23,13 +23,15 @@ #include "thread.h" -#define P(NAME) printf("\t%-*s%4zu%4zu\n", 11, #NAME, sizeof(((thread_t *) 0)->NAME), offsetof(thread_t, NAME)); +#define P(NAME) printf("\t%-*s%4u%4u\n", 11, #NAME, \ + (unsigned)sizeof(((thread_t *) 0)->NAME), \ + (unsigned)offsetof(thread_t, NAME)); int main(void) { puts("\tmember, sizeof, offsetof"); - printf("sizeof(thread_t): %zu\n", sizeof(thread_t)); + printf("sizeof(thread_t): %u\n", (unsigned)sizeof(thread_t)); P(sp); P(status);