aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/gspca/benq.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2017-09-22 14:33:35 -0400
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-12-08 10:08:50 -0500
commit52173c5f3f6476eb9100691ec47b10d6740eed4a (patch)
tree0aa21aa9e5da8c384381c9213c3ff2f2045e0df2 /drivers/media/usb/gspca/benq.c
parentmedia: stk-webcam: Fix use after free on disconnect (diff)
downloadlinux-dev-52173c5f3f6476eb9100691ec47b10d6740eed4a.tar.xz
linux-dev-52173c5f3f6476eb9100691ec47b10d6740eed4a.zip
media: gspca: Convert PERR to gspca_err
Use a more typical kernel logging style. The current macro hides the gspca_dev argument so add it to the macro uses instead. Miscellanea: o Add missing '\n' terminations to formats o Realign arguments to open parenthesis Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/usb/gspca/benq.c')
-rw-r--r--drivers/media/usb/gspca/benq.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/usb/gspca/benq.c b/drivers/media/usb/gspca/benq.c
index 60a728203b3b..b5955bf0d0fc 100644
--- a/drivers/media/usb/gspca/benq.c
+++ b/drivers/media/usb/gspca/benq.c
@@ -180,9 +180,9 @@ static void sd_isoc_irq(struct urb *urb)
/* check the packet status and length */
if (urb0->iso_frame_desc[i].actual_length != SD_PKT_SZ
|| urb->iso_frame_desc[i].actual_length != SD_PKT_SZ) {
- PERR("ISOC bad lengths %d / %d",
- urb0->iso_frame_desc[i].actual_length,
- urb->iso_frame_desc[i].actual_length);
+ gspca_err(gspca_dev, "ISOC bad lengths %d / %d\n",
+ urb0->iso_frame_desc[i].actual_length,
+ urb->iso_frame_desc[i].actual_length);
gspca_dev->last_packet_type = DISCARD_PACKET;
continue;
}