]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
virtio: provide driver name in debug message
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Wed, 26 Jul 2023 15:43:40 +0000 (17:43 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 3 Aug 2023 19:30:53 +0000 (15:30 -0400)
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>
drivers/virtio/virtio-uclass.c

index 31bb21c534e5358b62155fa976d418dcc75a0ddd..f2b3ef1d8b92ea9c97fad37571b04f6b1eb8903f 100644 (file)
@@ -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) {