Logging: Make some things less chatty

This commit is contained in:
Dion Dokter 2025-04-25 10:53:17 +02:00
parent a687fb20f6
commit f5ab597a07
2 changed files with 5 additions and 5 deletions

View File

@ -143,7 +143,7 @@ impl<'d, T: Instance> Adc<'d, T> {
T::common_regs().ccr().modify(|w| w.set_presc(prescaler.presc()));
let frequency = Hertz(T::frequency().0 / prescaler.divisor());
info!("ADC frequency set to {}", frequency);
trace!("ADC frequency set to {}", frequency);
if frequency > MAX_ADC_CLK_FREQ {
panic!("Maximal allowed frequency for the ADC is {} MHz and it varies with different packages, refer to ST docs for more information.", MAX_ADC_CLK_FREQ.0 / 1_000_000 );

View File

@ -218,10 +218,10 @@ impl<'d, D: Driver<'d>> Builder<'d, D> {
self.bos_descriptor.end_bos();
// Log the number of allocator bytes actually used in descriptor buffers
info!("USB: config_descriptor used: {}", self.config_descriptor.position());
info!("USB: bos_descriptor used: {}", self.bos_descriptor.writer.position());
info!("USB: msos_descriptor used: {}", msos_descriptor.len());
info!("USB: control_buf size: {}", self.control_buf.len());
trace!("USB: config_descriptor used: {}", self.config_descriptor.position());
trace!("USB: bos_descriptor used: {}", self.bos_descriptor.writer.position());
trace!("USB: msos_descriptor used: {}", msos_descriptor.len());
trace!("USB: control_buf size: {}", self.control_buf.len());
UsbDevice::build(
self.driver,