[PATCH rtems-examples 19/23] misc/nanosecond_tick_wrap: Fix warnings
Joel Sherrill
joel at rtems.org
Wed Feb 23 22:21:47 UTC 2022
---
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;
}
--
1.8.3.1
More information about the devel
mailing list