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
@@ -1763,8 +1763,8 @@ static int reg_write(struct gspca_dev *gspca_dev,
|
||||
req,
|
||||
USB_TYPE_VENDOR | USB_RECIP_DEVICE,
|
||||
value, index, NULL, 0, 500);
|
||||
PDEBUG(D_USBO, "reg write: 0x%02x 0x%02x 0x%02x",
|
||||
req, index, value);
|
||||
gspca_dbg(gspca_dev, D_USBO, "reg write: 0x%02x 0x%02x 0x%02x\n",
|
||||
req, index, value);
|
||||
if (ret < 0)
|
||||
pr_err("reg write: error %d\n", ret);
|
||||
return ret;
|
||||
@@ -1852,7 +1852,7 @@ static int sd_init(struct gspca_dev *gspca_dev)
|
||||
goto error;
|
||||
break;
|
||||
}
|
||||
PDEBUG(D_STREAM, "Initializing SPCA501 finished");
|
||||
gspca_dbg(gspca_dev, D_STREAM, "Initializing SPCA501 finished\n");
|
||||
return 0;
|
||||
error:
|
||||
return -EINVAL;
|
||||
|
Reference in New Issue
Block a user