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:

committed by
Mauro Carvalho Chehab

parent
52173c5f3f
commit
37d5efb019
@@ -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;
|
||||
|
Reference in New Issue
Block a user