Skip to content

Commit

Permalink
virtio: provide driver name in debug message
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
  • Loading branch information
xypron authored and trini committed Aug 3, 2023
1 parent 42cd759 commit 63baa84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/virtio/virtio-uclass.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 63baa84

Please sign in to comment.