@@ -70,7 +70,7 @@ impl<B: UsbBus> ControlPipe<'_, B> {
70
70
pub fn handle_setup ( & mut self ) -> Option < Request > {
71
71
let count = match self . ep_out . read ( & mut self . buf [ ..] ) {
72
72
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] ) ;
74
74
count
75
75
}
76
76
Err ( UsbError :: WouldBlock ) => return None ,
@@ -91,7 +91,7 @@ impl<B: UsbBus> ControlPipe<'_, B> {
91
91
// a stalled state.
92
92
self . ep_out . unstall ( ) ;
93
93
94
- usb_debug ! ( "EP0 request received: {req :?}" ) ;
94
+ usb_debug ! ( "EP0 request received: {:?}" , req ) ;
95
95
96
96
/*sprintln!("SETUP {:?} {:?} {:?} req:{} val:{} idx:{} len:{} {:?}",
97
97
req.direction, req.request_type, req.recipient,
@@ -145,13 +145,14 @@ impl<B: UsbBus> ControlPipe<'_, B> {
145
145
} ;
146
146
147
147
usb_trace ! (
148
- "Read {count} bytes on EP0-OUT: {:?}" ,
148
+ "Read {} bytes on EP0-OUT: {:?}" ,
149
+ count,
149
150
& self . buf[ i..( i + count) ]
150
151
) ;
151
152
self . i += count;
152
153
153
154
if self . i >= self . len {
154
- usb_debug ! ( "Request OUT complete: {req :?}" ) ;
155
+ usb_debug ! ( "Request OUT complete: {:?}" , req ) ;
155
156
self . state = ControlState :: CompleteOut ;
156
157
return Some ( req) ;
157
158
}
@@ -232,7 +233,7 @@ impl<B: UsbBus> ControlPipe<'_, B> {
232
233
// There isn't much we can do if the write fails, except to wait for another poll or for
233
234
// the host to resend the request.
234
235
Err ( _err) => {
235
- usb_debug ! ( "Failed to write EP0: {_err :?}" ) ;
236
+ usb_debug ! ( "Failed to write EP0: {:?}" , _err ) ;
236
237
return ;
237
238
}
238
239
} ;
0 commit comments