Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cm-projects
RIOT
Commits
4c2aaa63
Commit
4c2aaa63
authored
10 years ago
by
Martin
Committed by
Martin Landsmann
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
fixed initializer and Wformat warnings
parent
4b3083e3
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_vtimer_msg/main.c
+3
-3
3 additions, 3 deletions
tests/test_vtimer_msg/main.c
with
3 additions
and
3 deletions
tests/test_vtimer_msg/main.c
+
3
−
3
View file @
4c2aaa63
...
@@ -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.%u
s: %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
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment