summaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/gspca/dtcs033.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/dtcs033.c
parent52173c5f3f6476eb9100691ec47b10d6740eed4a (diff)
downloadop-kernel-dev-37d5efb01910752d8d3846a2c4db0528c1dfa137.zip
op-kernel-dev-37d5efb01910752d8d3846a2c4db0528c1dfa137.tar.gz
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/dtcs033.c')
-rw-r--r--drivers/media/usb/gspca/dtcs033.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/media/usb/gspca/dtcs033.c b/drivers/media/usb/gspca/dtcs033.c
index b4d4294..cdf27cf 100644
--- a/drivers/media/usb/gspca/dtcs033.c
+++ b/drivers/media/usb/gspca/dtcs033.c
@@ -75,14 +75,14 @@ static int reg_reqs(struct gspca_dev *gspca_dev,
i, n_reqs);
} else if (preq->bRequestType & USB_DIR_IN) {
- PDEBUG(D_STREAM,
- "USB IN (%d) returned[%d] %02X %02X %02X %s",
- i,
- preq->wLength,
- gspca_dev->usb_buf[0],
- gspca_dev->usb_buf[1],
- gspca_dev->usb_buf[2],
- preq->wLength > 3 ? "...\n" : "\n");
+ gspca_dbg(gspca_dev, D_STREAM,
+ "USB IN (%d) returned[%d] %02X %02X %02X %s\n",
+ i,
+ preq->wLength,
+ gspca_dev->usb_buf[0],
+ gspca_dev->usb_buf[1],
+ gspca_dev->usb_buf[2],
+ preq->wLength > 3 ? "...\n" : "\n");
}
i++;
OpenPOWER on IntegriCloud