[media] v4l2-subdev: add start/end messages for log_status
authorHans Verkuil <[email protected]>
Thu, 2 Feb 2012 11:26:20 +0000 (08:26 -0300)
committerMauro Carvalho Chehab <[email protected]>
Tue, 14 Feb 2012 18:38:23 +0000 (16:38 -0200)
Add the start and end messages for log_status when called from a
subdev device node.

Signed-off-by: Hans Verkuil <[email protected]>
Cc: Laurent Pinchart <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
drivers/media/video/v4l2-subdev.c

index 41d118ee2de63860fdac7b9eba76c1c4cf318c13..6fe88e965a8c4d4fef746ea1abcfead47b17ba8d 100644 (file)
@@ -194,8 +194,16 @@ static long subdev_do_ioctl(struct file *file, unsigned int cmd, void *arg)
        }
 #endif
 
-       case VIDIOC_LOG_STATUS:
-               return v4l2_subdev_call(sd, core, log_status);
+       case VIDIOC_LOG_STATUS: {
+               int ret;
+
+               pr_info("%s: =================  START STATUS  =================\n",
+                       sd->name);
+               ret = v4l2_subdev_call(sd, core, log_status);
+               pr_info("%s: ==================  END STATUS  ==================\n",
+                       sd->name);
+               return ret;
+       }
 
 #if defined(CONFIG_VIDEO_V4L2_SUBDEV_API)
        case VIDIOC_SUBDEV_G_FMT: {