summaryrefslogtreecommitdiff
path: root/v4l2-apps/lib/libv4l/libv4l1/log.c
diff options
context:
space:
mode:
authorhans@localhost.localdomain <hans@localhost.localdomain>2008-08-06 10:49:16 +0200
committerhans@localhost.localdomain <hans@localhost.localdomain>2008-08-06 10:49:16 +0200
commitcfbd2d6622d7a75929f34972ca407acb4437d3d2 (patch)
treee909f6a9eb1513ea2f929f1db36722d4cc541e52 /v4l2-apps/lib/libv4l/libv4l1/log.c
parentefcc2c1bf27fed430cbff0603d9d09cb88d1fad4 (diff)
downloadmediapointer-dvb-s2-cfbd2d6622d7a75929f34972ca407acb4437d3d2.tar.gz
mediapointer-dvb-s2-cfbd2d6622d7a75929f34972ca407acb4437d3d2.tar.bz2
libv4l: Fix errors and warnings when compiling with ICC
From: Gregor Jasny <jasny@vidsoft.de> libv4l: Fix errors and warnings when compiling with ICC Priority: normal Signed-off-by: Gregor Jasny <jasny@vidsoft.de> Signed-off-by: Hans de Goede <j.w.r.degoede@hhs.nl>
Diffstat (limited to 'v4l2-apps/lib/libv4l/libv4l1/log.c')
-rw-r--r--v4l2-apps/lib/libv4l/libv4l1/log.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/v4l2-apps/lib/libv4l/libv4l1/log.c b/v4l2-apps/lib/libv4l/libv4l1/log.c
index cccc3e6d0..74ce0f20b 100644
--- a/v4l2-apps/lib/libv4l/libv4l1/log.c
+++ b/v4l2-apps/lib/libv4l/libv4l1/log.c
@@ -25,6 +25,7 @@
#include <asm/types.h>
/* end broken header workaround includes */
#include <linux/videodev.h>
+#include "libv4l1-priv.h"
#define ARRAY_SIZE(x) (sizeof(x)/sizeof((x)[0]))
@@ -92,9 +93,9 @@ void v4l1_log_ioctl(unsigned long int request, void *arg, int result)
break;
case VIDIOCGWIN:
case VIDIOCSWIN:
- fprintf(v4l1_log_file,"width\t%d\n",
+ fprintf(v4l1_log_file,"width\t%u\n",
((struct video_window *)arg)->width);
- fprintf(v4l1_log_file,"height\t%d\n",
+ fprintf(v4l1_log_file,"height\t%u\n",
((struct video_window *)arg)->height);
break;
@@ -115,7 +116,7 @@ void v4l1_log_ioctl(unsigned long int request, void *arg, int result)
fprintf(v4l1_log_file,"palette %d\n",( (int)((struct video_picture*)arg)->palette) );
break;
- case VIDIOCCAPTURE: fprintf(v4l1_log_file,"on/of? %d\n", *((int *)arg) );
+ case VIDIOCCAPTURE: fprintf(v4l1_log_file,"on/off? %d\n", *((int *)arg) );
break;
case VIDIOCSYNC: fprintf(v4l1_log_file,"sync %d\n", *((int *)arg) );