Skip to content
Snippets Groups Projects
Commit 4c2aaa63 authored by Martin's avatar Martin Committed by Martin Landsmann
Browse files

fixed initializer and Wformat warnings

parent 4b3083e3
No related branches found
No related tags found
No related merge requests found
...@@ -37,8 +37,8 @@ struct timer_msg { ...@@ -37,8 +37,8 @@ struct timer_msg {
timex_t now; timex_t now;
struct timer_msg msg_a = { .timer = {0}, .interval = { .seconds = 2, .microseconds = 0}, .msg = "Hello World" }; struct timer_msg msg_a = { .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_b = { .interval = { .seconds = 5, .microseconds = 0}, .msg = "This is a Test" };
void timer_thread(void) void timer_thread(void)
{ {
...@@ -55,7 +55,7 @@ void timer_thread(void) ...@@ -55,7 +55,7 @@ void timer_thread(void)
msg_receive(&m); msg_receive(&m);
struct timer_msg *tmsg = (struct timer_msg *) m.content.ptr; struct timer_msg *tmsg = (struct timer_msg *) m.content.ptr;
vtimer_now(&now); 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.seconds,
now.microseconds, now.microseconds,
tmsg->interval.seconds, tmsg->interval.seconds,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment