1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2026-01-01 01:41:18 +01:00

tests/sizeof_tcb: fix printf format to work on arduino

arduino-uno and arduino-mega2560 do not support the '%-*s' option.
This commit is contained in:
Gaëtan Harter 2018-04-26 15:40:47 +02:00
parent 4f1206c1c5
commit 23eefa3408
No known key found for this signature in database
GPG Key ID: 76DF6BCF1B1F883B

View File

@ -23,7 +23,7 @@
#include "thread.h"
#define P(NAME) printf("\t%-*s%4u%4u\n", 11, #NAME, \
#define P(NAME) printf("\t%-11s%4u%4u\n", #NAME, \
(unsigned)sizeof(((thread_t *) 0)->NAME), \
(unsigned)offsetof(thread_t, NAME));