Where should I submit patches? The source forge page or the mailing
list, now I have one in both.
Change the output for pixel format from an integer to hex and ASCII.
Much easier to see what is going on.
Signed-off-by: David Fries <[EMAIL PROTECTED]>
---
branches/m5602-s5k83a/m5602_v4l2.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/branches/m5602-s5k83a/m5602_v4l2.c
b/branches/m5602-s5k83a/m5602_v4l2.c
index cd884bf..1348221 100644
--- a/branches/m5602-s5k83a/m5602_v4l2.c
+++ b/branches/m5602-s5k83a/m5602_v4l2.c
@@ -791,8 +791,14 @@ static int check_format(struct v4l2_format *fmt)
if (fmt->type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
return 0;
- PDEBUG(DBG_V4L2, "Trying to set pixel format %d, width %d, height %d",
- fmt->fmt.pix.pixelformat, fmt->fmt.pix.width,
+ PDEBUG(DBG_V4L2, "Trying to set pixel format 0x%08x [%c%c%c%c], "
+ "width %d, height %d",
+ fmt->fmt.pix.pixelformat,
+ fmt->fmt.pix.pixelformat & 0xff,
+ (fmt->fmt.pix.pixelformat>>8) & 0xff,
+ (fmt->fmt.pix.pixelformat>>24) & 0xff,
+ (fmt->fmt.pix.pixelformat>>16) & 0xff,
+ fmt->fmt.pix.width,
fmt->fmt.pix.height);
if ((fmt->fmt.pix.width > M5602_DEFAULT_FRAME_WIDTH) ||
--
1.4.4.4
--
David Fries <[EMAIL PROTECTED]>
http://fries.net/~david/ (PGP encryption key available)
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
M560x-driver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/m560x-driver-devel