@@ -119,7 +119,7 @@ impl Vsock {
119119 /// have pending. Return `true` if descriptors have been added to the used ring, and `false`
120120 /// otherwise.
121121 pub fn process_stream_rx ( & mut self ) -> bool {
122- debug ! ( "vsock: process_stream_rx()" ) ;
122+ debug ! ( "process_stream_rx()" ) ;
123123 let mem = match self . device_state {
124124 DeviceState :: Activated ( ref mem, _) => mem,
125125 // This should never happen, it's been already validated in the event handler.
@@ -128,10 +128,10 @@ impl Vsock {
128128
129129 let mut have_used = false ;
130130
131- debug ! ( "vsock: process_rx before while" ) ;
131+ debug ! ( "process_rx before while" ) ;
132132 let mut queue_rx = self . queue_rx . lock ( ) . unwrap ( ) ;
133133 while let Some ( head) = queue_rx. pop ( mem) {
134- debug ! ( "vsock: process_rx inside while" ) ;
134+ debug ! ( "process_rx inside while" ) ;
135135 let used_len = match VsockPacket :: from_rx_virtq_head ( & head) {
136136 Ok ( mut pkt) => {
137137 if self . muxer . recv_pkt ( & mut pkt) . is_ok ( ) {
@@ -144,12 +144,12 @@ impl Vsock {
144144 }
145145 }
146146 Err ( e) => {
147- warn ! ( "vsock: RX queue error: {e:?}" ) ;
147+ warn ! ( "RX queue error: {e:?}" ) ;
148148 0
149149 }
150150 } ;
151151
152- debug ! ( "vsock: process_rx: something to queue" ) ;
152+ debug ! ( "process_rx: something to queue" ) ;
153153 have_used = true ;
154154 if let Err ( e) = queue_rx. add_used ( mem, head. index , used_len) {
155155 error ! ( "failed to add used elements to the queue: {e:?}" ) ;
@@ -162,7 +162,7 @@ impl Vsock {
162162 /// Walk the driver-provided TX queue buffers, package them up as vsock packets, and process
163163 /// them. Return `true` if descriptors have been added to the used ring, and `false` otherwise.
164164 pub fn process_stream_tx ( & mut self ) -> bool {
165- debug ! ( "vsock:: process_stream_tx()" ) ;
165+ debug ! ( "process_stream_tx()" ) ;
166166 let mem = match self . device_state {
167167 DeviceState :: Activated ( ref mem, _) => mem,
168168 // This should never happen, it's been already validated in the event handler.
@@ -176,7 +176,7 @@ impl Vsock {
176176 let pkt = match VsockPacket :: from_tx_virtq_head ( & head) {
177177 Ok ( pkt) => pkt,
178178 Err ( e) => {
179- error ! ( "vsock: error reading TX packet: {e:?}" ) ;
179+ error ! ( "error reading TX packet: {e:?}" ) ;
180180 have_used = true ;
181181 if let Err ( e) = queue_tx. add_used ( mem, head. index , 0 ) {
182182 error ! ( "failed to add used elements to the queue: {e:?}" ) ;
@@ -186,13 +186,13 @@ impl Vsock {
186186 } ;
187187
188188 if pkt. type_ ( ) == uapi:: VSOCK_TYPE_DGRAM {
189- debug ! ( "vsock:: process_stream_tx() is DGRAM" ) ;
189+ debug ! ( "process_stream_tx() is DGRAM" ) ;
190190 if self . muxer . send_dgram_pkt ( & pkt) . is_err ( ) {
191191 queue_tx. undo_pop ( ) ;
192192 break ;
193193 }
194194 } else {
195- debug ! ( "vsock:: process_stream_tx() is STREAM" ) ;
195+ debug ! ( "process_stream_tx() is STREAM" ) ;
196196 if self . muxer . send_stream_pkt ( & pkt) . is_err ( ) {
197197 queue_tx. undo_pop ( ) ;
198198 break ;
@@ -252,7 +252,7 @@ impl VirtioDevice for Vsock {
252252 byte_order:: write_le_u32 ( data, ( ( self . cid ( ) >> 32 ) & 0xffff_ffff ) as u32 )
253253 }
254254 _ => warn ! (
255- "vsock: virtio-vsock received invalid read request of {} bytes at offset {}" ,
255+ "virtio-vsock received invalid read request of {} bytes at offset {}" ,
256256 data. len( ) ,
257257 offset
258258 ) ,
@@ -261,7 +261,7 @@ impl VirtioDevice for Vsock {
261261
262262 fn write_config ( & mut self , offset : u64 , data : & [ u8 ] ) {
263263 warn ! (
264- "vsock: guest driver attempted to write device config (offset={:x}, len={:x})" ,
264+ "guest driver attempted to write device config (offset={:x}, len={:x})" ,
265265 offset,
266266 data. len( )
267267 ) ;
0 commit comments