summaryrefslogtreecommitdiff
path: root/drivers/media/usb/gspca/etoms.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/etoms.c
parent6e298d58473520a806d59b7aa51dcb194d1a1b03 (diff)
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/etoms.c')
-rw-r--r--drivers/media/usb/gspca/etoms.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/usb/gspca/etoms.c b/drivers/media/usb/gspca/etoms.c
index 8f84292936e9..a88ae69d6c1e 100644
--- a/drivers/media/usb/gspca/etoms.c
+++ b/drivers/media/usb/gspca/etoms.c
@@ -160,7 +160,7 @@ static void reg_r(struct gspca_dev *gspca_dev,
struct usb_device *dev = gspca_dev->dev;
if (len > USB_BUF_SZ) {
- PERR("reg_r: buffer overflow\n");
+ gspca_err(gspca_dev, "reg_r: buffer overflow\n");
return;
}
@@ -268,7 +268,7 @@ static int et_video(struct gspca_dev *gspca_dev,
: 0); /* stopvideo */
ret = Et_WaitStatus(gspca_dev);
if (ret != 0)
- PERR("timeout video on/off");
+ gspca_err(gspca_dev, "timeout video on/off\n");
return ret;
}