Skip to content

Commit deec99c

Browse files
committed
Fixing log format
1 parent 5fe6f6a commit deec99c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/device.rs

Lines changed: 3 additions & 3 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 => {
@@ -248,7 +248,7 @@ impl<B: UsbBus> UsbDevice<'_, B> {
248248
Err(_err) => {
249249
// TODO: Propagate this out of `poll()`
250250
usb_debug!(
251-
"Failed to process control-input complete: {}",
251+
"Failed to process control-input complete: {:?}",
252252
_err
253253
);
254254
false

0 commit comments

Comments
 (0)