AP_Compass: cleanup warnings in printf calls

This commit is contained in:
Andrew Tridgell 2024-07-06 08:58:15 +10:00 committed by Peter Barker
parent f4f79905cc
commit 991ea6326d
7 changed files with 7 additions and 7 deletions

View File

@ -168,7 +168,7 @@ bool AP_Compass_IST8308::init()
set_dev_id(_instance, _dev->get_bus_id()); set_dev_id(_instance, _dev->get_bus_id());
printf("%s found on bus %u id %u address 0x%02x\n", name, printf("%s found on bus %u id %u address 0x%02x\n", name,
_dev->bus_num(), _dev->get_bus_id(), _dev->get_bus_address()); _dev->bus_num(), unsigned(_dev->get_bus_id()), _dev->get_bus_address());
set_rotation(_instance, _rotation); set_rotation(_instance, _rotation);

View File

@ -178,7 +178,7 @@ bool AP_Compass_IST8310::init()
set_dev_id(_instance, _dev->get_bus_id()); set_dev_id(_instance, _dev->get_bus_id());
printf("%s found on bus %u id %u address 0x%02x\n", name, printf("%s found on bus %u id %u address 0x%02x\n", name,
_dev->bus_num(), _dev->get_bus_id(), _dev->get_bus_address()); _dev->bus_num(), unsigned(_dev->get_bus_id()), _dev->get_bus_address());
set_rotation(_instance, _rotation); set_rotation(_instance, _rotation);

View File

@ -113,7 +113,7 @@ bool AP_Compass_LIS3MDL::init()
} }
set_dev_id(compass_instance, dev->get_bus_id()); set_dev_id(compass_instance, dev->get_bus_id());
printf("Found a LIS3MDL on 0x%x as compass %u\n", dev->get_bus_id(), compass_instance); printf("Found a LIS3MDL on 0x%x as compass %u\n", unsigned(dev->get_bus_id()), compass_instance);
set_rotation(compass_instance, rotation); set_rotation(compass_instance, rotation);

View File

@ -99,7 +99,7 @@ bool AP_Compass_MMC3416::init()
set_dev_id(compass_instance, dev->get_bus_id()); set_dev_id(compass_instance, dev->get_bus_id());
printf("Found a MMC3416 on 0x%x as compass %u\n", dev->get_bus_id(), compass_instance); printf("Found a MMC3416 on 0x%x as compass %u\n", unsigned(dev->get_bus_id()), compass_instance);
set_rotation(compass_instance, rotation); set_rotation(compass_instance, rotation);

View File

@ -115,7 +115,7 @@ bool AP_Compass_MMC5XX3::init()
set_dev_id(compass_instance, dev->get_bus_id()); set_dev_id(compass_instance, dev->get_bus_id());
printf("Found a MMC5983 on 0x%x as compass %u\n", dev->get_bus_id(), compass_instance); printf("Found a MMC5983 on 0x%x as compass %u\n", unsigned(dev->get_bus_id()), compass_instance);
set_rotation(compass_instance, rotation); set_rotation(compass_instance, rotation);

View File

@ -123,7 +123,7 @@ bool AP_Compass_QMC5883L::init()
set_dev_id(_instance, _dev->get_bus_id()); set_dev_id(_instance, _dev->get_bus_id());
printf("%s found on bus %u id %u address 0x%02x\n", name, printf("%s found on bus %u id %u address 0x%02x\n", name,
_dev->bus_num(), _dev->get_bus_id(), _dev->get_bus_address()); _dev->bus_num(), unsigned(_dev->get_bus_id()), _dev->get_bus_address());
set_rotation(_instance, _rotation); set_rotation(_instance, _rotation);

View File

@ -134,7 +134,7 @@ bool AP_Compass_QMC5883P::init()
set_dev_id(_instance, _dev->get_bus_id()); set_dev_id(_instance, _dev->get_bus_id());
printf("%s found on bus %u id %u address 0x%02x\n", name, printf("%s found on bus %u id %u address 0x%02x\n", name,
_dev->bus_num(), _dev->get_bus_id(), _dev->get_bus_address()); _dev->bus_num(), unsigned(_dev->get_bus_id()), _dev->get_bus_address());
set_rotation(_instance, _rotation); set_rotation(_instance, _rotation);