summaryrefslogtreecommitdiff
path: root/v4l2-apps/lib/libv4l/libv4l1/log.c
diff options
context:
space:
mode:
authorhans@localhost.localdomain <hans@localhost.localdomain>2008-09-15 13:48:21 +0200
committerhans@localhost.localdomain <hans@localhost.localdomain>2008-09-15 13:48:21 +0200
commit37365f711151fceee2bbc87ef7836c5f08b7c1f1 (patch)
tree75939c8fa46e5f8c4e242873521c0852366ce427 /v4l2-apps/lib/libv4l/libv4l1/log.c
parentd00cfd7d61d0a9cf2b38a816bfd5478f3342a0e4 (diff)
downloadmediapointer-dvb-s2-37365f711151fceee2bbc87ef7836c5f08b7c1f1.tar.gz
mediapointer-dvb-s2-37365f711151fceee2bbc87ef7836c5f08b7c1f1.tar.bz2
libv4l: 0.5.0 release
From: Hans de Goede <hdegoede@redhat.com> * Add support for enumerating framesizes and frameintervals of emulated formats when the driver supports it for the real format * Make sure the video device always gets opened RW even if the application asks for RO * Add Genius E-Messenger 112 (093a:2476) to list of cams which have their sensor upside down Priority: normal Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'v4l2-apps/lib/libv4l/libv4l1/log.c')
-rw-r--r--v4l2-apps/lib/libv4l/libv4l1/log.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/v4l2-apps/lib/libv4l/libv4l1/log.c b/v4l2-apps/lib/libv4l/libv4l1/log.c
index 74ce0f20b..9ff0cea46 100644
--- a/v4l2-apps/lib/libv4l/libv4l1/log.c
+++ b/v4l2-apps/lib/libv4l/libv4l1/log.c
@@ -66,6 +66,7 @@ static const char *v4l1_ioctls[] = {
void v4l1_log_ioctl(unsigned long int request, void *arg, int result)
{
const char *ioctl_str = "unknown";
+ char buf[40];
if (!v4l1_log_file)
return;
@@ -77,6 +78,11 @@ void v4l1_log_ioctl(unsigned long int request, void *arg, int result)
if (_IOC_TYPE(request) == 'v' && _IOC_NR(request) < ARRAY_SIZE(v4l1_ioctls))
ioctl_str = v4l1_ioctls[_IOC_NR(request)];
+ else {
+ snprintf(buf, sizeof(buf), "unknown request: %c %d\n",
+ (int)_IOC_TYPE(request), (int)_IOC_NR(request));
+ ioctl_str = buf;
+ }
fprintf(v4l1_log_file, "request == %s\n", ioctl_str);