[PATCH 1/1] 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 heinrich.schuchardt@canonical.com --- drivers/virtio/virtio-uclass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
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) {

On Wed, 26 Jul 2023 at 11:00, Heinrich Schuchardt heinrich.schuchardt@canonical.com wrote:
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 heinrich.schuchardt@canonical.com
drivers/virtio/virtio-uclass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Simon Glass sjg@chromium.org

On Wed, Jul 26, 2023 at 05:43:40PM +0200, Heinrich Schuchardt wrote:
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 heinrich.schuchardt@canonical.com Reviewed-by: Simon Glass sjg@chromium.org
Applied to u-boot/master, thanks!
participants (3)
-
Heinrich Schuchardt
-
Simon Glass
-
Tom Rini