From: Heinrich Schuchardt Date: Wed, 26 Jul 2023 15:43:40 +0000 (+0200) Subject: virtio: provide driver name in debug message X-Git-Tag: v2025.01-rc5-pxa1908~901^2~5 X-Git-Url: http://git.dujemihanovic.xyz/%22/img/sics.gif/%22/static/git-favicon.png?a=commitdiff_plain;h=63baa841295812d77723382c74e723ab716f4563;p=u-boot.git virtio: provide driver name in debug message If a driver cannot be bound, provide the driver name in the debug message. Now the debug message may look like this: (virtio-pci.l#0): virtio-rng driver not configured Signed-off-by: Heinrich Schuchardt Reviewed-by: Simon Glass --- diff --git a/drivers/virtio/virtio-uclass.c b/drivers/virtio/virtio-uclass.c index 31bb21c534..f2b3ef1d8b 100644 --- a/drivers/virtio/virtio-uclass.c +++ b/drivers/virtio/virtio-uclass.c @@ -238,7 +238,7 @@ static int virtio_uclass_post_probe(struct udevice *udev) ret = device_bind_driver(udev, name, str, &vdev); if (ret == -ENOENT) { - debug("(%s): no driver configured\n", udev->name); + debug("(%s): %s driver not configured\n", udev->name, name); return 0; } if (ret) {