diff options
author | Ezequiel Garcia <elezegarcia@gmail.com> | 2012-08-19 20:23:43 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-09-25 09:38:43 -0400 |
commit | 18ad89659a345c017ab61f758f9dfedab3c8190f (patch) | |
tree | 24a52623ea647b47131b07e8aa2e72a896e7d32c | |
parent | 83c735379b41a8c07af6a81140e071e87b95dd11 (diff) |
[media] stk1160: Make kill/free urb debug message more verbose
This is just a cleaning patch to produce more useful
debug messages.
Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | drivers/media/usb/stk1160/stk1160-video.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/media/usb/stk1160/stk1160-video.c b/drivers/media/usb/stk1160/stk1160-video.c index 378526981146..022092aab924 100644 --- a/drivers/media/usb/stk1160/stk1160-video.c +++ b/drivers/media/usb/stk1160/stk1160-video.c | |||
@@ -342,18 +342,18 @@ static void stk1160_isoc_irq(struct urb *urb) | |||
342 | */ | 342 | */ |
343 | void stk1160_cancel_isoc(struct stk1160 *dev) | 343 | void stk1160_cancel_isoc(struct stk1160 *dev) |
344 | { | 344 | { |
345 | int i; | 345 | int i, num_bufs = dev->isoc_ctl.num_bufs; |
346 | 346 | ||
347 | /* | 347 | /* |
348 | * This check is not necessary, but we add it | 348 | * This check is not necessary, but we add it |
349 | * to avoid a spurious debug message | 349 | * to avoid a spurious debug message |
350 | */ | 350 | */ |
351 | if (!dev->isoc_ctl.num_bufs) | 351 | if (!num_bufs) |
352 | return; | 352 | return; |
353 | 353 | ||
354 | stk1160_dbg("killing urbs...\n"); | 354 | stk1160_dbg("killing %d urbs...\n", num_bufs); |
355 | 355 | ||
356 | for (i = 0; i < dev->isoc_ctl.num_bufs; i++) { | 356 | for (i = 0; i < num_bufs; i++) { |
357 | 357 | ||
358 | /* | 358 | /* |
359 | * To kill urbs we can't be in atomic context. | 359 | * To kill urbs we can't be in atomic context. |
@@ -373,11 +373,11 @@ void stk1160_cancel_isoc(struct stk1160 *dev) | |||
373 | void stk1160_free_isoc(struct stk1160 *dev) | 373 | void stk1160_free_isoc(struct stk1160 *dev) |
374 | { | 374 | { |
375 | struct urb *urb; | 375 | struct urb *urb; |
376 | int i; | 376 | int i, num_bufs = dev->isoc_ctl.num_bufs; |
377 | 377 | ||
378 | stk1160_dbg("freeing urb buffers...\n"); | 378 | stk1160_dbg("freeing %d urb buffers...\n", num_bufs); |
379 | 379 | ||
380 | for (i = 0; i < dev->isoc_ctl.num_bufs; i++) { | 380 | for (i = 0; i < num_bufs; i++) { |
381 | 381 | ||
382 | urb = dev->isoc_ctl.urb[i]; | 382 | urb = dev->isoc_ctl.urb[i]; |
383 | if (urb) { | 383 | if (urb) { |