Skip to content
Snippets Groups Projects
Unverified Commit 23eefa34 authored by Gaëtan Harter's avatar Gaëtan Harter
Browse files

tests/sizeof_tcb: fix printf format to work on arduino

arduino-uno and arduino-mega2560 do not support the '%-*s' option.
parent 4f1206c1
No related branches found
No related tags found
No related merge requests found
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
#include "thread.h" #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)sizeof(((thread_t *) 0)->NAME), \
(unsigned)offsetof(thread_t, NAME)); (unsigned)offsetof(thread_t, NAME));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment