Skip to content

Commit

Permalink
tests/sizeof_tcb: fix printf format to work on arduino
Browse files Browse the repository at this point in the history
arduino-uno and arduino-mega2560 do not support the '%-*s' option.

(cherry picked from commit 23eefa3)
  • Loading branch information
cladmi committed May 2, 2018
1 parent 28e95de commit 0c67954
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/sizeof_tcb/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down

0 comments on commit 0c67954

Please sign in to comment.