diff --git a/libraries/AP_HAL_SITL/SITL_State.cpp b/libraries/AP_HAL_SITL/SITL_State.cpp index 067e90f08d..1114abb760 100644 --- a/libraries/AP_HAL_SITL/SITL_State.cpp +++ b/libraries/AP_HAL_SITL/SITL_State.cpp @@ -279,7 +279,7 @@ bool SITL_State::_read_rc_sitl_input() return true; } default: - fprintf(stderr, "Malformed SITL RC input (%li)", size); + fprintf(stderr, "Malformed SITL RC input (%ld)", (long)size); } return false; }