[rtems-examples commit] misc/nanosecond_tick_wrap: Fix warnings
Joel Sherrill
joel at rtems.org
Thu Feb 24 23:04:34 UTC 2022
Module: rtems-examples
Branch: master
Commit: a385ee567d23826251da63a180d3dba3507cb7db
Changeset: http://git.rtems.org/rtems-examples/commit/?id=a385ee567d23826251da63a180d3dba3507cb7db
Author: Joel Sherrill <joel at rtems.org>
Date: Wed Feb 23 16:16:26 2022 -0600
misc/nanosecond_tick_wrap: Fix warnings
---
misc/nanosecond_tick_wrap/init.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/misc/nanosecond_tick_wrap/init.c b/misc/nanosecond_tick_wrap/init.c
index fb6c003..f02b954 100644
--- a/misc/nanosecond_tick_wrap/init.c
+++ b/misc/nanosecond_tick_wrap/init.c
@@ -42,8 +42,8 @@ rtems_task Init(
sec = t1 / 1000000;
printf(
- "TEST:rtems=%u.%09u t=%u.%03u.%03u dt=%u\n",
- uptime[i].tv_sec, uptime[i].tv_nsec, sec, msec, usec, (t1-t0)
+ "TEST:rtems=%lld.%09ld t=%u.%03u.%03u dt=%u\n",
+ (long long) uptime[i].tv_sec, uptime[i].tv_nsec, sec, msec, usec, (t1-t0)
);
t0 = t1;
}
More information about the vc
mailing list