From deec99cb691a1cdd0bf9fc5405301452b0964f96 Mon Sep 17 00:00:00 2001 From: Ryan Summers Date: Wed, 28 Feb 2024 11:20:34 +0100 Subject: [PATCH] Fixing log format --- src/device.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/device.rs b/src/device.rs index 9bff183..3ac1eb1 100644 --- a/src/device.rs +++ b/src/device.rs @@ -218,7 +218,7 @@ impl UsbDevice<'_, B> { Ok(req) => req, Err(_err) => { // TODO: Propagate error out of `poll()` - usb_debug!("Failed to handle EP0: {}", _err); + usb_debug!("Failed to handle EP0: {:?}", _err); None } } @@ -230,7 +230,7 @@ impl UsbDevice<'_, B> { Some(req) if req.direction == UsbDirection::In => { if let Err(_err) = self.control_in(classes, req) { // TODO: Propagate error out of `poll()` - usb_debug!("Failed to handle control request: {}", _err); + usb_debug!("Failed to handle control request: {:?}", _err); } } Some(req) if req.direction == UsbDirection::Out => { @@ -248,7 +248,7 @@ impl UsbDevice<'_, B> { Err(_err) => { // TODO: Propagate this out of `poll()` usb_debug!( - "Failed to process control-input complete: {}", + "Failed to process control-input complete: {:?}", _err ); false