Fix many format strings.
Fixes these invalid format strings: - A `%d` for a pointer (replaced it by `%p`) - A 0x%08x (and a 0x%0x8!) for a pointer (replaced by %p) - 2 cases of `%d` for a `ssize_t` (replaced it by `%zi`) - 1 case of a %u for an `int` (replaced by %i) - 3 cases of %d for a `long` (replaced by %ld) - 19 cases of `%d`, `%i`, `%u` or `%lu` for a `size_t` (replaced it by `%zu`) - An unused formatting argument (removed it) - A missing `%d` (added it) - A missing `%s` (added it) - 2 cases of `%llu` for a `uint64_t` (replaced it by `"%" PRIu64`) - 6 cases of giving a string directly as format string (replaced it by `("%s", string)`) - 2 cases of %*-s, which should probably have been %-*s. (Looks like NuttX accepts (the invalid) %*-s, but other platforms don't.) - A %04x for a `uint32_t` (replaced by "%04" PRIx32)
Showing
- platforms/posix/src/px4_daemon/client.cpp 1 addition, 1 deletionplatforms/posix/src/px4_daemon/client.cpp
- src/drivers/batt_smbus/batt_smbus_main.cpp 1 addition, 1 deletionsrc/drivers/batt_smbus/batt_smbus_main.cpp
- src/drivers/distance_sensor/sf0x/sf0x.cpp 1 addition, 1 deletionsrc/drivers/distance_sensor/sf0x/sf0x.cpp
- src/drivers/distance_sensor/tfmini/tfmini.cpp 1 addition, 1 deletionsrc/drivers/distance_sensor/tfmini/tfmini.cpp
- src/drivers/px4io/px4io.cpp 1 addition, 1 deletionsrc/drivers/px4io/px4io.cpp
- src/drivers/telemetry/frsky_telemetry/frsky_telemetry.cpp 3 additions, 3 deletionssrc/drivers/telemetry/frsky_telemetry/frsky_telemetry.cpp
- src/examples/bottle_drop/bottle_drop.cpp 1 addition, 1 deletionsrc/examples/bottle_drop/bottle_drop.cpp
- src/lib/rc/rc_tests/RCTest.cpp 1 addition, 1 deletionsrc/lib/rc/rc_tests/RCTest.cpp
- src/modules/commander/Commander.cpp 2 additions, 2 deletionssrc/modules/commander/Commander.cpp
- src/modules/commander/airspeed_calibration.cpp 1 addition, 1 deletionsrc/modules/commander/airspeed_calibration.cpp
- src/modules/commander/mag_calibration.cpp 1 addition, 1 deletionsrc/modules/commander/mag_calibration.cpp
- src/modules/local_position_estimator/BlockLocalPositionEstimator.cpp 5 additions, 5 deletions.../local_position_estimator/BlockLocalPositionEstimator.cpp
- src/modules/mavlink/mavlink_main.cpp 4 additions, 4 deletionssrc/modules/mavlink/mavlink_main.cpp
- src/modules/mc_pos_control/mc_pos_control_main.cpp 1 addition, 1 deletionsrc/modules/mc_pos_control/mc_pos_control_main.cpp
- src/modules/navigator/mission_feasibility_checker.cpp 5 additions, 5 deletionssrc/modules/navigator/mission_feasibility_checker.cpp
- src/modules/uORB/uORBDeviceMaster.cpp 2 additions, 10 deletionssrc/modules/uORB/uORBDeviceMaster.cpp
- src/modules/uORB/uORBDeviceNode.cpp 1 addition, 1 deletionsrc/modules/uORB/uORBDeviceNode.cpp
- src/systemcmds/bl_update/bl_update.c 4 additions, 4 deletionssrc/systemcmds/bl_update/bl_update.c
- src/systemcmds/tests/test_dataman.c 1 addition, 1 deletionsrc/systemcmds/tests/test_dataman.c
Loading
Please register or sign in to comment