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>
This commit is contained in:

committed by
Mauro Carvalho Chehab

parent
6e298d5847
commit
52173c5f3f
@@ -70,7 +70,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;
|
||||
}
|
||||
|
||||
@@ -109,7 +109,7 @@ static void reg_w(struct gspca_dev *gspca_dev,
|
||||
struct usb_device *dev = gspca_dev->dev;
|
||||
|
||||
if (len > USB_BUF_SZ) {
|
||||
PERR("reg_w: buffer overflow\n");
|
||||
gspca_err(gspca_dev, "reg_w: buffer overflow\n");
|
||||
return;
|
||||
}
|
||||
PDEBUG(D_USBO, "reg write [%02x] = %02x..", index, *buffer);
|
||||
@@ -683,7 +683,7 @@ static void cx11646_jpeg(struct gspca_dev*gspca_dev)
|
||||
reg_w_val(gspca_dev, 0x0053, 0x00);
|
||||
} while (--retry);
|
||||
if (retry == 0)
|
||||
PERR("Damned Errors sending jpeg Table");
|
||||
gspca_err(gspca_dev, "Damned Errors sending jpeg Table\n");
|
||||
/* send the qtable now */
|
||||
reg_r(gspca_dev, 0x0001, 1); /* -> 0x18 */
|
||||
length = 8;
|
||||
|
Reference in New Issue
Block a user