some printf format and conversion fixes

This commit is contained in:
rfu
2020-05-04 09:49:23 +02:00
committed by Beat Küng
parent 90c3819df5
commit 8787780de4
8 changed files with 15 additions and 20 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ ADC::ADC(uint32_t base_address, uint32_t channels) :
}
if (_channel_count > PX4_MAX_ADC_CHANNELS) {
PX4_ERR("PX4_MAX_ADC_CHANNELS is too small:is %d needed:%d", PX4_MAX_ADC_CHANNELS, _channel_count);
PX4_ERR("PX4_MAX_ADC_CHANNELS is too small (%d, %d)", (unsigned)PX4_MAX_ADC_CHANNELS, _channel_count);
}
_samples = new px4_adc_msg_t[_channel_count];