From eb1652d514671bcce12e0ed2437def6fab7e4123 Mon Sep 17 00:00:00 2001 From: Rhys Mainwaring Date: Thu, 5 Oct 2023 10:04:39 +0100 Subject: [PATCH] AP_UROS: update string formatting Signed-off-by: Rhys Mainwaring --- libraries/AP_UROS/AP_UROS_Client.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libraries/AP_UROS/AP_UROS_Client.cpp b/libraries/AP_UROS/AP_UROS_Client.cpp index c2abc01841639..637293eb3cfa1 100644 --- a/libraries/AP_UROS/AP_UROS_Client.cpp +++ b/libraries/AP_UROS/AP_UROS_Client.cpp @@ -70,8 +70,8 @@ __LINE__, (int)temp_rc);\ /* will be empty when RCUTILS_AVOID_DYNAMIC_ALLOCATION is defined */\ const rcutils_error_state_t *err = rcutils_get_error_state();\ - uros_error("UROS: error: %s, file: %s, line: %llu, ",\ - err->message, err->file, err->line_number);\ + uros_error("UROS: error: %s, file: %s, line: %u, ",\ + err->message, err->file, (uint32_t)err->line_number);\ return false;\ } else {\ uros_debug("UROS: " msg"... OK");\ @@ -688,10 +688,10 @@ bool AP_UROS_Client::on_parameter_changed( case RCLC_PARAMETER_INT: uros_info( "UROS: parameter %s modified: " - "old value: %lld, new value: %lld (int)", + "old value: %d, new value: %d (int)", old_param->name.data, - old_param->value.integer_value, - new_param->value.integer_value); + (int32_t)old_param->value.integer_value, + (int32_t)new_param->value.integer_value); break; case RCLC_PARAMETER_DOUBLE: uros_info(