Commit 1e8faa59 authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab

[media] v4l2-ioctl: tidy up debug messages

Make sure the format fields are reported consistently.
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Acked-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 66108e3c
...@@ -257,7 +257,7 @@ static void v4l_print_format(const void *arg, bool write_only) ...@@ -257,7 +257,7 @@ static void v4l_print_format(const void *arg, bool write_only)
pr_cont(", width=%u, height=%u, " pr_cont(", width=%u, height=%u, "
"pixelformat=%c%c%c%c, field=%s, " "pixelformat=%c%c%c%c, field=%s, "
"bytesperline=%u, sizeimage=%u, colorspace=%d, " "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->width, pix->height,
(pix->pixelformat & 0xff), (pix->pixelformat & 0xff),
(pix->pixelformat >> 8) & 0xff, (pix->pixelformat >> 8) & 0xff,
...@@ -273,7 +273,7 @@ static void v4l_print_format(const void *arg, bool write_only) ...@@ -273,7 +273,7 @@ static void v4l_print_format(const void *arg, bool write_only)
mp = &p->fmt.pix_mp; mp = &p->fmt.pix_mp;
pr_cont(", width=%u, height=%u, " pr_cont(", width=%u, height=%u, "
"format=%c%c%c%c, field=%s, " "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", "ycbcr_enc=%u, quantization=%u\n",
mp->width, mp->height, mp->width, mp->height,
(mp->pixelformat & 0xff), (mp->pixelformat & 0xff),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment