diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2006-06-26 23:24:05 +0200 |
---|---|---|
committer | Hans Verkuil <hverkuil@xs4all.nl> | 2006-06-26 23:24:05 +0200 |
commit | f946df2d8b2498e21954e07cc0126e8beb34ac40 (patch) | |
tree | 95115d2bf833a6416b509222529d4837c14e26f1 /linux/drivers/media/video/cx88/cx88-blackbird.c | |
parent | 630df645af9c5f22d032d768942fb03f584cbec7 (diff) | |
download | mediapointer-dvb-s2-f946df2d8b2498e21954e07cc0126e8beb34ac40.tar.gz mediapointer-dvb-s2-f946df2d8b2498e21954e07cc0126e8beb34ac40.tar.bz2 |
Pass an explicit log prefix to cx2341x_log_status
From: Hans Verkuil <hverkuil@xs4all.nl>
A card number is not unique enough. Instead, let the caller specify the
prefix of the status messages.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'linux/drivers/media/video/cx88/cx88-blackbird.c')
-rw-r--r-- | linux/drivers/media/video/cx88/cx88-blackbird.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/linux/drivers/media/video/cx88/cx88-blackbird.c b/linux/drivers/media/video/cx88/cx88-blackbird.c index 2acf7fb94..e92659be4 100644 --- a/linux/drivers/media/video/cx88/cx88-blackbird.c +++ b/linux/drivers/media/video/cx88/cx88-blackbird.c @@ -887,13 +887,18 @@ static int mpeg_do_ioctl(struct inode *inode, struct file *file, return 0; } case VIDIOC_LOG_STATUS: + { + char name[32 + 2]; + + snprintf(name, sizeof(name), "%s/2", core->name); printk("%s/2: ============ START LOG STATUS ============\n", core->name); cx88_call_i2c_clients(core, VIDIOC_LOG_STATUS, 0); - cx2341x_log_status(&dev->params, dev->mpeg_dev->minor); + cx2341x_log_status(&dev->params, name); printk("%s/2: ============= END LOG STATUS =============\n", core->name); return 0; + } default: return cx88_do_ioctl(inode, file, 0, dev->core, cmd, arg, mpeg_do_ioctl); |