[media] v4l2-ioctl: tidy up debug messages
authorHans Verkuil <hverkuil@xs4all.nl>
Sun, 8 Mar 2015 07:30:47 +0000 (04:30 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 2 Apr 2015 21:10:51 +0000 (18:10 -0300)
Make sure the format fields are reported consistently.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/v4l2-core/v4l2-ioctl.c

index 09ad8ddfaaf9cdc14d382442b76426a1eae4de0a..d2dc7e557c356d522718303aa574e117204629da 100644 (file)
@@ -257,7 +257,7 @@ static void v4l_print_format(const void *arg, bool write_only)
                pr_cont(", width=%u, height=%u, "
                        "pixelformat=%c%c%c%c, field=%s, "
                        "bytesperline=%u, sizeimage=%u, colorspace=%d, "
-                       "flags %x, ycbcr_enc=%u, quantization=%u\n",
+                       "flags=0x%x, ycbcr_enc=%u, quantization=%u\n",
                        pix->width, pix->height,
                        (pix->pixelformat & 0xff),
                        (pix->pixelformat >>  8) & 0xff,
@@ -273,7 +273,7 @@ static void v4l_print_format(const void *arg, bool write_only)
                mp = &p->fmt.pix_mp;
                pr_cont(", width=%u, height=%u, "
                        "format=%c%c%c%c, field=%s, "
-                       "colorspace=%d, num_planes=%u, flags=%x, "
+                       "colorspace=%d, num_planes=%u, flags=0x%x, "
                        "ycbcr_enc=%u, quantization=%u\n",
                        mp->width, mp->height,
                        (mp->pixelformat & 0xff),