diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2007-08-19 05:08:58 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-10-09 21:05:42 -0400 |
commit | 1aa32c2ffd146dddd76babf842e998502f1b993a (patch) | |
tree | d19c6b10cc00211bc4144db68c528fcb6f95fffc /drivers/media/video/ivtv/ivtv-mailbox.c | |
parent | 313e91e824c0c595dec3740c0c87f55eea6bdb3f (diff) |
V4L/DVB (6055): ivtv: improve debug messages
- add FILE debug flag for open/close/read/write/poll.
- show cmd for encoder/decoder command ioctl.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/ivtv/ivtv-mailbox.c')
-rw-r--r-- | drivers/media/video/ivtv/ivtv-mailbox.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/video/ivtv/ivtv-mailbox.c b/drivers/media/video/ivtv/ivtv-mailbox.c index 5e3b679202ae..b05436da7136 100644 --- a/drivers/media/video/ivtv/ivtv-mailbox.c +++ b/drivers/media/video/ivtv/ivtv-mailbox.c | |||
@@ -225,15 +225,15 @@ static int ivtv_api_call(struct ivtv *itv, int cmd, int args, u32 data[]) | |||
225 | } | 225 | } |
226 | if (args < 0 || args > CX2341X_MBOX_MAX_DATA || | 226 | if (args < 0 || args > CX2341X_MBOX_MAX_DATA || |
227 | cmd < 0 || cmd > 255 || api_info[cmd].name == NULL) { | 227 | cmd < 0 || cmd > 255 || api_info[cmd].name == NULL) { |
228 | IVTV_ERR("Invalid API call: cmd = 0x%02x, args = %d\n", cmd, args); | 228 | IVTV_ERR("Invalid MB call: cmd = 0x%02x, args = %d\n", cmd, args); |
229 | return -EINVAL; | 229 | return -EINVAL; |
230 | } | 230 | } |
231 | 231 | ||
232 | if (api_info[cmd].flags & API_HIGH_VOL) { | 232 | if (api_info[cmd].flags & API_HIGH_VOL) { |
233 | IVTV_DEBUG_HI_API("API Call: %s\n", api_info[cmd].name); | 233 | IVTV_DEBUG_HI_MB("MB Call: %s\n", api_info[cmd].name); |
234 | } | 234 | } |
235 | else { | 235 | else { |
236 | IVTV_DEBUG_API("API Call: %s\n", api_info[cmd].name); | 236 | IVTV_DEBUG_MB("MB Call: %s\n", api_info[cmd].name); |
237 | } | 237 | } |
238 | 238 | ||
239 | /* clear possibly uninitialized part of data array */ | 239 | /* clear possibly uninitialized part of data array */ |