From 23eefa3408a2653bb899a184c30258522ce42f96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Harter?= <gaetan.harter@fu-berlin.de> Date: Thu, 26 Apr 2018 15:40:47 +0200 Subject: [PATCH] tests/sizeof_tcb: fix printf format to work on arduino arduino-uno and arduino-mega2560 do not support the '%-*s' option. --- tests/sizeof_tcb/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/sizeof_tcb/main.c b/tests/sizeof_tcb/main.c index 1d7db7b7f2..3ea2f4ea86 100644 --- a/tests/sizeof_tcb/main.c +++ b/tests/sizeof_tcb/main.c @@ -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)); -- GitLab