From fc3d49240e07267e909310e74d3044cf46d57858 Mon Sep 17 00:00:00 2001 From: Mark Charlebois Date: Fri, 28 Jul 2017 14:32:18 -0700 Subject: [PATCH] Added missing "%" Signed-off-by: Mark Charlebois --- msg/templates/uorb/microRTPS_client.cpp.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/msg/templates/uorb/microRTPS_client.cpp.template b/msg/templates/uorb/microRTPS_client.cpp.template index 341482efaf..b6a9b9acf3 100644 --- a/msg/templates/uorb/microRTPS_client.cpp.template +++ b/msg/templates/uorb/microRTPS_client.cpp.template @@ -206,7 +206,7 @@ void* send(void* /*unused*/) struct timespec end; px4_clock_gettime(CLOCK_REALTIME, &end); double elapsed_secs = double(end.tv_sec - begin.tv_sec) + double(end.tv_nsec - begin.tv_nsec)/double(1000000000); - printf("\nSENT: " PRIu64 " messages in %d LOOPS, " PRIu64 " bytes in %.03f seconds - %.02fKB/s\n", + printf("\nSENT: %" PRIu64 " messages in %d LOOPS, %" PRIu64 " bytes in %.03f seconds - %.02fKB/s\n", sent, loop, total_sent, elapsed_secs, (double)total_sent/(1000*elapsed_secs)); return nullptr;