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

父節點
52173c5f3f
當前提交
37d5efb019
@@ -1247,8 +1247,8 @@ static int reg_write(struct gspca_dev *gspca_dev, u16 index, u16 value)
|
||||
0, /* request */
|
||||
USB_TYPE_VENDOR | USB_RECIP_DEVICE,
|
||||
value, index, NULL, 0, 500);
|
||||
PDEBUG(D_USBO, "reg write i:0x%04x = 0x%02x",
|
||||
index, value);
|
||||
gspca_dbg(gspca_dev, D_USBO, "reg write i:0x%04x = 0x%02x\n",
|
||||
index, value);
|
||||
if (ret < 0)
|
||||
pr_err("reg write: error %d\n", ret);
|
||||
return ret;
|
||||
@@ -1269,8 +1269,8 @@ static int reg_read(struct gspca_dev *gspca_dev,
|
||||
index,
|
||||
gspca_dev->usb_buf, 1,
|
||||
500); /* timeout */
|
||||
PDEBUG(D_USBI, "reg read i:%04x --> %02x",
|
||||
index, gspca_dev->usb_buf[0]);
|
||||
gspca_dbg(gspca_dev, D_USBI, "reg read i:%04x --> %02x\n",
|
||||
index, gspca_dev->usb_buf[0]);
|
||||
if (ret < 0) {
|
||||
pr_err("reg_read err %d\n", ret);
|
||||
return ret;
|
||||
@@ -1366,14 +1366,17 @@ static int sd_config(struct gspca_dev *gspca_dev,
|
||||
* is a 508. */
|
||||
data1 = reg_read(gspca_dev, 0x8104);
|
||||
data2 = reg_read(gspca_dev, 0x8105);
|
||||
PDEBUG(D_PROBE, "Webcam Vendor ID: 0x%02x%02x", data2, data1);
|
||||
gspca_dbg(gspca_dev, D_PROBE, "Webcam Vendor ID: 0x%02x%02x\n",
|
||||
data2, data1);
|
||||
|
||||
data1 = reg_read(gspca_dev, 0x8106);
|
||||
data2 = reg_read(gspca_dev, 0x8107);
|
||||
PDEBUG(D_PROBE, "Webcam Product ID: 0x%02x%02x", data2, data1);
|
||||
gspca_dbg(gspca_dev, D_PROBE, "Webcam Product ID: 0x%02x%02x\n",
|
||||
data2, data1);
|
||||
|
||||
data1 = reg_read(gspca_dev, 0x8621);
|
||||
PDEBUG(D_PROBE, "Window 1 average luminance: %d", data1);
|
||||
gspca_dbg(gspca_dev, D_PROBE, "Window 1 average luminance: %d\n",
|
||||
data1);
|
||||
|
||||
cam = &gspca_dev->cam;
|
||||
cam->cam_mode = sif_mode;
|
||||
|
Reference in New Issue
Block a user