diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2009-12-10 08:47:13 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-12-15 21:17:57 -0500 |
commit | 50462eb065e12f45851a9959a90d46b758944552 (patch) | |
tree | fea5b79f1852183c5eaa3f079d5054dc78a828fa /drivers/media/common | |
parent | 63b0d5ad20365edf8baf96cdbb8e7faf62501286 (diff) |
V4L/DVB (13555): v4l: Use video_device_node_name() instead of the minor number
Instead of using the minor number in kernel log messages, use the device
node name as returned by the video_device_node_name() function. This
makes debug, informational and error messages easier to understand for
end users.
[mchehab.redhat.com: removed tm6000 changes as tm6000 is not ready yet for submission even on staging]
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/common')
-rw-r--r-- | drivers/media/common/saa7146_fops.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/common/saa7146_fops.c b/drivers/media/common/saa7146_fops.c index 2d9fc2435f2b..3c11cff00475 100644 --- a/drivers/media/common/saa7146_fops.c +++ b/drivers/media/common/saa7146_fops.c | |||
@@ -194,7 +194,6 @@ void saa7146_buffer_timeout(unsigned long data) | |||
194 | 194 | ||
195 | static int fops_open(struct file *file) | 195 | static int fops_open(struct file *file) |
196 | { | 196 | { |
197 | unsigned int minor = video_devdata(file)->minor; | ||
198 | struct video_device *vdev = video_devdata(file); | 197 | struct video_device *vdev = video_devdata(file); |
199 | struct saa7146_dev *dev = video_drvdata(file); | 198 | struct saa7146_dev *dev = video_drvdata(file); |
200 | struct saa7146_fh *fh = NULL; | 199 | struct saa7146_fh *fh = NULL; |
@@ -202,7 +201,7 @@ static int fops_open(struct file *file) | |||
202 | 201 | ||
203 | enum v4l2_buf_type type; | 202 | enum v4l2_buf_type type; |
204 | 203 | ||
205 | DEB_EE(("file:%p, minor:%d\n", file, minor)); | 204 | DEB_EE(("file:%p, dev:%s\n", file, video_device_node_name(vdev))); |
206 | 205 | ||
207 | if (mutex_lock_interruptible(&saa7146_devices_lock)) | 206 | if (mutex_lock_interruptible(&saa7146_devices_lock)) |
208 | return -ERESTARTSYS; | 207 | return -ERESTARTSYS; |