Correct copy/paste errors

This commit is contained in:
James Munns 2023-03-27 15:37:12 +02:00
parent a6cef4baf2
commit a77fdefd7c

View File

@ -201,19 +201,21 @@ impl<'d, D: Driver<'d>> Builder<'d, D> {
self.config_descriptor.end_configuration();
self.bos_descriptor.end_bos();
// Log the number of allocator bytes actually used in descriptor buffers
info!("USB: device_descriptor used: {}", self.device_descriptor.position());
info!("USB: config_descriptor used: {}", self.config_descriptor.position());
info!("USB: bos_descriptor_buf used: {}", self.bos_descriptor.writer.position());
info!("USB: bos_descriptor used: {}", self.bos_descriptor.writer.position());
#[cfg(feature = "msos-descriptor")]
info!("USB: device_descriptor used: {}", msos_descriptor.len());
info!("USB: msos_descriptor used: {}", msos_descriptor.len());
if self.control_buf.len() != self.config.max_packet_size_0.into() {
warn!(
"Mismatch in control buf and max packet size! buf len: {}, max ep0 size: {}",
"USB: Mismatch in control buf and max packet size! buf len: {}, max ep0 size: {}",
self.control_buf.len(),
self.config.max_packet_size_0,
);
} else {
info!("USB: control_buf size: {}", self.control_buf.len());
}
info!("USB: device_descriptor used: {}", self.config_descriptor.position());
UsbDevice::build(
self.driver,