[PATCH] virtio: Stop spamming debug buffer

Ahmad Fatoum a.fatoum at pengutronix.de
Thu Oct 16 05:05:48 PDT 2025



On 10/14/25 11:37 AM, Jonas Rebmann wrote:
> At log level 7, this permanently prints over a hundred times per second,
> probably unneeded debug print, drop it.
> 
> Signed-off-by: Jonas Rebmann <jre at pengutronix.de>

Reviewed-by: Ahmad Fatoum <a.fatoum at pengutronix.de>

> ---
>  drivers/virtio/virtio_ring.c | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
> 
> diff --git a/drivers/virtio/virtio_ring.c b/drivers/virtio/virtio_ring.c
> index 284721aeff..c1c84e4961 100644
> --- a/drivers/virtio/virtio_ring.c
> +++ b/drivers/virtio/virtio_ring.c
> @@ -241,10 +241,8 @@ void *virtqueue_get_buf(struct virtqueue *vq, unsigned int *len)
>  	u16 last_used;
>  	void *ret;
>  
> -	if (!more_used(vq)) {
> -		vq_debug(vq, "No more buffers in queue\n");
> +	if (!more_used(vq))
>  		return NULL;
> -	}
>  
>  	/* Only get used array entries after they have been exposed by host */
>  	virtio_rmb();
> 
> ---
> base-commit: 8785a6ad7467b6f1f70b6e12aa2ceb2fdd5d8546
> change-id: 20251014-virtiospam-72c3f6fb134b
> 
> Best regards,
> --  
> Jonas Rebmann <jre at pengutronix.de>
> 
> 
> 

-- 
Pengutronix e.K.                  |                             |
Steuerwalder Str. 21              | http://www.pengutronix.de/  |
31137 Hildesheim, Germany         | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686  | Fax:   +49-5121-206917-5555 |




More information about the barebox mailing list