summaryrefslogtreecommitdiffstats
path: root/drivers/video/vpl.c
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2022-12-22 12:57:59 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2023-01-04 11:52:28 +0100
commitc1491e162d0db834c8d356f26643fc881671e2bb (patch)
tree2db4c79379a3a6d5518da0a15544485fc994ac58 /drivers/video/vpl.c
parent729ad733072525097fc69e765f374d172d3b3ceb (diff)
downloadbarebox-c1491e162d0db834c8d356f26643fc881671e2bb.tar.gz
barebox-c1491e162d0db834c8d356f26643fc881671e2bb.tar.xz
video: vpl: don't print only skipped vpl endpoints
The remote_vpl->ioctl is within a loop and every time an iteration is skipped, a debug line is printed, but no debug line is printed when the loop actually finds a remote_vpl to call its ioctl callback. Make this debugging code more useful by adding a debug print in the latter case. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20221222115759.855209-1-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/video/vpl.c')
-rw-r--r--drivers/video/vpl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/video/vpl.c b/drivers/video/vpl.c
index f94bd4a3e2..6d67861681 100644
--- a/drivers/video/vpl.c
+++ b/drivers/video/vpl.c
@@ -93,6 +93,7 @@ int vpl_ioctl(struct vpl *vpl, unsigned int port,
continue;
}
+ pr_debug("%s: looked up %s: %pS\n", __func__, remote->full_name, remote_vpl->ioctl);
ret = remote_vpl->ioctl(remote_vpl, remote_port_id, cmd, ptr);
if (ret)
return ret;