aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2023-07-26 17:43:40 +0200
committerTom Rini <trini@konsulko.com>2023-08-03 15:30:53 -0400
commit63baa841295812d77723382c74e723ab716f4563 (patch)
treefebc0d4edc6e17cce789c9e39d48d5ae3a47c66d
parent42cd759a371acb49538344dbdb0bf9a8bbb798a0 (diff)
downloadu-boot-63baa841295812d77723382c74e723ab716f4563.zip
u-boot-63baa841295812d77723382c74e723ab716f4563.tar.gz
u-boot-63baa841295812d77723382c74e723ab716f4563.tar.bz2
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> Reviewed-by: Simon Glass <sjg@chromium.org>
-rw-r--r--drivers/virtio/virtio-uclass.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/virtio/virtio-uclass.c b/drivers/virtio/virtio-uclass.c
index 31bb21c..f2b3ef1 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) {