diff options
author | Theodore Kilgore <kilgota@banach.math.auburn.edu> | 2013-02-04 11:17:55 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-03-05 13:13:48 -0500 |
commit | c93396e13576928a073154b5715761ff8a998368 (patch) | |
tree | 2ef9873a27412fe6d5dbe361d7298301510573f6 /drivers/media/usb/gspca/pac7302.c | |
parent | 70c8ecf54bf735f300f86bde562420af90bf9db4 (diff) |
[media] gspca: Remove gspca-specific debug magic
Instead use v4l2_dbg and v4l2_err. Note that the PDEBUG macro is kept to
make this patch-set less invasive, but it is simply a wrapper around
v4l2_dbg now. Most of the other changes are there to make the dev parameter
for the v4l2_xxx macros available everywhere we do logging.
Signed-off-by: Theodore Kilgore <kilgota@auburn.edu>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/usb/gspca/pac7302.c')
-rw-r--r-- | drivers/media/usb/gspca/pac7302.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/media/usb/gspca/pac7302.c b/drivers/media/usb/gspca/pac7302.c index add6f725ba50..682ef3340911 100644 --- a/drivers/media/usb/gspca/pac7302.c +++ b/drivers/media/usb/gspca/pac7302.c | |||
@@ -344,13 +344,10 @@ static void reg_w_var(struct gspca_dev *gspca_dev, | |||
344 | reg_w_page(gspca_dev, page3, page3_len); | 344 | reg_w_page(gspca_dev, page3, page3_len); |
345 | break; | 345 | break; |
346 | default: | 346 | default: |
347 | #ifdef GSPCA_DEBUG | ||
348 | if (len > USB_BUF_SZ) { | 347 | if (len > USB_BUF_SZ) { |
349 | PDEBUG(D_ERR|D_STREAM, | 348 | PERR("Incorrect variable sequence"); |
350 | "Incorrect variable sequence"); | ||
351 | return; | 349 | return; |
352 | } | 350 | } |
353 | #endif | ||
354 | while (len > 0) { | 351 | while (len > 0) { |
355 | if (len < 8) { | 352 | if (len < 8) { |
356 | reg_w_buf(gspca_dev, | 353 | reg_w_buf(gspca_dev, |
@@ -795,7 +792,7 @@ static void sd_pkt_scan(struct gspca_dev *gspca_dev, | |||
795 | u8 *image; | 792 | u8 *image; |
796 | u8 *sof; | 793 | u8 *sof; |
797 | 794 | ||
798 | sof = pac_find_sof(&sd->sof_read, data, len); | 795 | sof = pac_find_sof(gspca_dev, &sd->sof_read, data, len); |
799 | if (sof) { | 796 | if (sof) { |
800 | int n, lum_offset, footer_length; | 797 | int n, lum_offset, footer_length; |
801 | 798 | ||