From f01400de819f70d4ae43c91292ab2467b070fa79 Mon Sep 17 00:00:00 2001 From: Beniamino Pozzan Date: Sun, 26 Nov 2023 01:25:09 +0000 Subject: [PATCH] [uxrce_dds_client] Fix debug string format - use PRId64 and llabs Signed-off-by: Beniamino Pozzan --- src/modules/uxrce_dds_client/uxrce_dds_client.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/uxrce_dds_client/uxrce_dds_client.cpp b/src/modules/uxrce_dds_client/uxrce_dds_client.cpp index 10892a2a42..be575fb6db 100644 --- a/src/modules/uxrce_dds_client/uxrce_dds_client.cpp +++ b/src/modules/uxrce_dds_client/uxrce_dds_client.cpp @@ -264,8 +264,8 @@ void UxrceddsClient::syncSystemClock(uxrSession *session) if (delta < 5_s) { // Only set the time if it's more than 5 seconds off (matches Mavlink and GPS logic) - PX4_DEBUG("agents UTC time is %s by %lld us, not setting clock", agent_utc > system_utc ? "ahead" : "behind", - abs(system_utc - agent_utc)); + PX4_DEBUG("agents UTC time is %s by %-5" PRId64 "us, not setting clock", agent_utc > system_utc ? "ahead" : "behind", + llabs(system_utc - agent_utc)); return; }