aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/gspca/spca505.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2017-09-22 15:20:33 -0400
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-12-08 10:10:15 -0500
commit37d5efb01910752d8d3846a2c4db0528c1dfa137 (patch)
treef47a9f8305b6de30b9be179f93f21b8d7ca962e8 /drivers/media/usb/gspca/spca505.c
parentmedia: gspca: Convert PERR to gspca_err (diff)
downloadlinux-dev-37d5efb01910752d8d3846a2c4db0528c1dfa137.tar.xz
linux-dev-37d5efb01910752d8d3846a2c4db0528c1dfa137.zip
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>
Diffstat (limited to 'drivers/media/usb/gspca/spca505.c')
-rw-r--r--drivers/media/usb/gspca/spca505.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/usb/gspca/spca505.c b/drivers/media/usb/gspca/spca505.c
index 02b5e2d81c64..07aae9cd5a30 100644
--- a/drivers/media/usb/gspca/spca505.c
+++ b/drivers/media/usb/gspca/spca505.c
@@ -551,8 +551,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, %d",
- req, index, value, ret);
+ gspca_dbg(gspca_dev, D_USBO, "reg write: 0x%02x,0x%02x:0x%02x, %d\n",
+ req, index, value, ret);
if (ret < 0)
pr_err("reg write: error %d\n", ret);
return ret;