Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] v4l2-subdev: add start/end messages for log_status

Add the start and end messages for log_status when called from a
subdev device node.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

authored by

Hans Verkuil and committed by
Mauro Carvalho Chehab
42194e72 e2ecb257

+10 -2
+10 -2
drivers/media/video/v4l2-subdev.c
··· 194 194 } 195 195 #endif 196 196 197 - case VIDIOC_LOG_STATUS: 198 - return v4l2_subdev_call(sd, core, log_status); 197 + case VIDIOC_LOG_STATUS: { 198 + int ret; 199 + 200 + pr_info("%s: ================= START STATUS =================\n", 201 + sd->name); 202 + ret = v4l2_subdev_call(sd, core, log_status); 203 + pr_info("%s: ================== END STATUS ==================\n", 204 + sd->name); 205 + return ret; 206 + } 199 207 200 208 #if defined(CONFIG_VIDEO_V4L2_SUBDEV_API) 201 209 case VIDIOC_SUBDEV_G_FMT: {