Merge pull request #4130 from diondokter/less-chatty
Logging: Make some things less chatty
This commit is contained in:
commit
8f66154353
@ -143,7 +143,7 @@ impl<'d, T: Instance> Adc<'d, T> {
|
|||||||
T::common_regs().ccr().modify(|w| w.set_presc(prescaler.presc()));
|
T::common_regs().ccr().modify(|w| w.set_presc(prescaler.presc()));
|
||||||
|
|
||||||
let frequency = Hertz(T::frequency().0 / prescaler.divisor());
|
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 {
|
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 );
|
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 );
|
||||||
|
|||||||
@ -218,10 +218,10 @@ impl<'d, D: Driver<'d>> Builder<'d, D> {
|
|||||||
self.bos_descriptor.end_bos();
|
self.bos_descriptor.end_bos();
|
||||||
|
|
||||||
// Log the number of allocator bytes actually used in descriptor buffers
|
// Log the number of allocator bytes actually used in descriptor buffers
|
||||||
info!("USB: config_descriptor used: {}", self.config_descriptor.position());
|
trace!("USB: config_descriptor used: {}", self.config_descriptor.position());
|
||||||
info!("USB: bos_descriptor used: {}", self.bos_descriptor.writer.position());
|
trace!("USB: bos_descriptor used: {}", self.bos_descriptor.writer.position());
|
||||||
info!("USB: msos_descriptor used: {}", msos_descriptor.len());
|
trace!("USB: msos_descriptor used: {}", msos_descriptor.len());
|
||||||
info!("USB: control_buf size: {}", self.control_buf.len());
|
trace!("USB: control_buf size: {}", self.control_buf.len());
|
||||||
|
|
||||||
UsbDevice::build(
|
UsbDevice::build(
|
||||||
self.driver,
|
self.driver,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user