media: gspca: Convert PDEBUG to gspca_dbg

Use a more typical 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
o Remove commented out uses of PDEBUG

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 15:20:33 -04:00
committed by Mauro Carvalho Chehab
parent 52173c5f3f
commit 37d5efb019
59 changed files with 742 additions and 687 deletions

View File

@@ -107,10 +107,9 @@ static unsigned char *pac_find_sof(struct gspca_dev *gspca_dev, u8 *sof_read,
switch (m[i]) {
case 0x96:
/* Pattern found */
PDEBUG(D_FRAM,
"SOF found, bytes to analyze: %u."
" Frame starts at byte #%u",
len, i + 1);
gspca_dbg(gspca_dev, D_FRAM,
"SOF found, bytes to analyze: %u - Frame starts at byte #%u\n",
len, i + 1);
*sof_read = 0;
return m + i + 1;
break;