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:
Joe Perches
2017-09-22 14:33:35 -04:00
committed by Mauro Carvalho Chehab
parent 6e298d5847
commit 52173c5f3f
32 changed files with 174 additions and 156 deletions

View File

@@ -339,7 +339,7 @@ static void reg_w_var(struct gspca_dev *gspca_dev,
break;
default:
if (len > USB_BUF_SZ) {
PERR("Incorrect variable sequence");
gspca_err(gspca_dev, "Incorrect variable sequence\n");
return;
}
while (len > 0) {