Skip to content

Commit 8318f0c

Browse files
committed
Fixing build
1 parent 49ceb08 commit 8318f0c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/control_pipe.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,11 @@ impl<B: UsbBus> ControlPipe<'_, B> {
136136
let count = match self.ep_out.read(&mut self.buf[i..]) {
137137
Ok(count) => count,
138138
Err(UsbError::WouldBlock) => return Ok(None),
139-
Err(_) => {
139+
Err(_err) => {
140140
// Failed to read or buffer overflow (overflow is only possible if the host
141141
// sends more data than it indicated in the SETUP request)
142142
self.set_error();
143+
usb_debug!("Failed EP0 read: {:?}", _err);
143144
return Ok(None);
144145
}
145146
};

src/device.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ impl<B: UsbBus> UsbDevice<'_, B> {
218218
Ok(req) => req,
219219
Err(_err) => {
220220
// TODO: Propagate error out of `poll()`
221-
usb_debug!("Failed to handle EP0: {_err}");
221+
usb_debug!("Failed to handle EP0: {}", _err);
222222
None
223223
}
224224
}
@@ -230,7 +230,7 @@ impl<B: UsbBus> UsbDevice<'_, B> {
230230
Some(req) if req.direction == UsbDirection::In => {
231231
if let Err(_err) = self.control_in(classes, req) {
232232
// TODO: Propagate error out of `poll()`
233-
usb_debug!("Failed to handle control request: {_err}");
233+
usb_debug!("Failed to handle control request: {}", _err);
234234
}
235235
}
236236
Some(req) if req.direction == UsbDirection::Out => {

0 commit comments

Comments
 (0)