@@ -70,7 +70,7 @@ impl<B: UsbBus> ControlPipe<'_, B> {
7070 pub fn handle_setup ( & mut self ) -> Option < Request > {
7171 let count = match self . ep_out . read ( & mut self . buf [ ..] ) {
7272 Ok ( count) => {
73- usb_trace ! ( "Read {count } bytes on EP0-OUT: {:?}" , & self . buf[ ..count] ) ;
73+ usb_trace ! ( "Read {} bytes on EP0-OUT: {:?}" , count , & self . buf[ ..count] ) ;
7474 count
7575 }
7676 Err ( UsbError :: WouldBlock ) => return None ,
@@ -91,7 +91,7 @@ impl<B: UsbBus> ControlPipe<'_, B> {
9191 // a stalled state.
9292 self . ep_out . unstall ( ) ;
9393
94- usb_debug ! ( "EP0 request received: {req :?}" ) ;
94+ usb_debug ! ( "EP0 request received: {:?}" , req ) ;
9595
9696 /*sprintln!("SETUP {:?} {:?} {:?} req:{} val:{} idx:{} len:{} {:?}",
9797 req.direction, req.request_type, req.recipient,
@@ -145,13 +145,14 @@ impl<B: UsbBus> ControlPipe<'_, B> {
145145 } ;
146146
147147 usb_trace ! (
148- "Read {count} bytes on EP0-OUT: {:?}" ,
148+ "Read {} bytes on EP0-OUT: {:?}" ,
149+ count,
149150 & self . buf[ i..( i + count) ]
150151 ) ;
151152 self . i += count;
152153
153154 if self . i >= self . len {
154- usb_debug ! ( "Request OUT complete: {req :?}" ) ;
155+ usb_debug ! ( "Request OUT complete: {:?}" , req ) ;
155156 self . state = ControlState :: CompleteOut ;
156157 return Some ( req) ;
157158 }
@@ -232,7 +233,7 @@ impl<B: UsbBus> ControlPipe<'_, B> {
232233 // There isn't much we can do if the write fails, except to wait for another poll or for
233234 // the host to resend the request.
234235 Err ( _err) => {
235- usb_debug ! ( "Failed to write EP0: {_err :?}" ) ;
236+ usb_debug ! ( "Failed to write EP0: {:?}" , _err ) ;
236237 return ;
237238 }
238239 } ;
0 commit comments