From 4c2aaa63219cac9a0bed283b093db4d8af6ded5a Mon Sep 17 00:00:00 2001 From: Martin <Martin.Landsmann@HAW-Hamburg.de> Date: Fri, 2 May 2014 14:43:42 +0200 Subject: [PATCH] fixed initializer and Wformat warnings --- tests/test_vtimer_msg/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_vtimer_msg/main.c b/tests/test_vtimer_msg/main.c index e857e2415c..157331e7f6 100644 --- a/tests/test_vtimer_msg/main.c +++ b/tests/test_vtimer_msg/main.c @@ -37,8 +37,8 @@ struct timer_msg { timex_t now; -struct timer_msg msg_a = { .timer = {0}, .interval = { .seconds = 2, .microseconds = 0}, .msg = "Hello World" }; -struct timer_msg msg_b = { .timer = {0}, .interval = { .seconds = 5, .microseconds = 0}, .msg = "This is a Test" }; +struct timer_msg msg_a = { .interval = { .seconds = 2, .microseconds = 0}, .msg = "Hello World" }; +struct timer_msg msg_b = { .interval = { .seconds = 5, .microseconds = 0}, .msg = "This is a Test" }; void timer_thread(void) { @@ -55,7 +55,7 @@ void timer_thread(void) msg_receive(&m); struct timer_msg *tmsg = (struct timer_msg *) m.content.ptr; vtimer_now(&now); - printf("now=%" PRIu32 ":%" PRIu32 " -> every %u.%us: %s\n", + printf("now=%" PRIu32 ":%" PRIu32 " -> every %" PRIu32 ".%" PRIu32 "s: %s\n", now.seconds, now.microseconds, tmsg->interval.seconds, -- GitLab