mirror of https://github.com/ArduPilot/ardupilot
AP_Compass: cleanup warnings in printf calls
This commit is contained in:
parent
f4f79905cc
commit
991ea6326d
|
@ -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);
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue