board_adc: Small fix for printf formatter

Print sizeof type with %zu to be compatible with 64 bit targets, where it is unsigned long

Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
This commit is contained in:
Jukka Laitinen 2022-08-23 17:25:19 +04:00 committed by Beat Küng
parent 0061ef8b89
commit f8f1213841
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ ADC::ADC(uint32_t base_address, uint32_t channels, bool publish_adc_report) :
}
if (_channel_count > PX4_MAX_ADC_CHANNELS) {
PX4_ERR("PX4_MAX_ADC_CHANNELS is too small (%u, %u)", PX4_MAX_ADC_CHANNELS, _channel_count);
PX4_ERR("PX4_MAX_ADC_CHANNELS is too small (%zu, %u)", PX4_MAX_ADC_CHANNELS, _channel_count);
}
_samples = new px4_adc_msg_t[_channel_count];