projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42cd759
)
virtio: provide driver name in debug message
author
Heinrich Schuchardt
<heinrich.schuchardt@canonical.com>
Wed, 26 Jul 2023 15:43:40 +0000
(17:43 +0200)
committer
Tom 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
patch
|
blob
|
history
diff --git
a/drivers/virtio/virtio-uclass.c
b/drivers/virtio/virtio-uclass.c
index
31bb21c
..
f2b3ef1
100644
(file)
--- 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) {