[uxrce_dds_client] Fix debug string format - use PRId64 and llabs

Signed-off-by: Beniamino Pozzan <beniamino.pozzan@gmail.com>
This commit is contained in:
Beniamino Pozzan
2023-11-26 01:25:09 +00:00
committed by Daniel Agar
parent 5af6cf1889
commit f01400de81
@@ -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;
}