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
@@ -704,7 +704,8 @@ static int cit_read_reg(struct gspca_dev *gspca_dev, u16 index, int verbose)
|
||||
}
|
||||
|
||||
if (verbose)
|
||||
PDEBUG(D_PROBE, "Register %04x value: %02x", index, buf[0]);
|
||||
gspca_dbg(gspca_dev, D_PROBE, "Register %04x value: %02x\n",
|
||||
index, buf[0]);
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -1471,10 +1472,11 @@ static int cit_get_clock_div(struct gspca_dev *gspca_dev)
|
||||
fps[clock_div - 1] * 3 / 2)
|
||||
clock_div--;
|
||||
|
||||
PDEBUG(D_PROBE,
|
||||
"PacketSize: %d, res: %dx%d -> using clockdiv: %d (%d fps)",
|
||||
packet_size, gspca_dev->pixfmt.width, gspca_dev->pixfmt.height,
|
||||
clock_div, fps[clock_div]);
|
||||
gspca_dbg(gspca_dev, D_PROBE,
|
||||
"PacketSize: %d, res: %dx%d -> using clockdiv: %d (%d fps)\n",
|
||||
packet_size,
|
||||
gspca_dev->pixfmt.width, gspca_dev->pixfmt.height,
|
||||
clock_div, fps[clock_div]);
|
||||
|
||||
return clock_div;
|
||||
}
|
||||
@@ -2865,17 +2867,17 @@ static u8 *cit_find_sof(struct gspca_dev *gspca_dev, u8 *data, int len)
|
||||
sd->sof_read = 0;
|
||||
if (data[i] == 0xff) {
|
||||
if (i >= 4)
|
||||
PDEBUG(D_FRAM,
|
||||
"header found at offset: %d: %02x %02x 00 %3ph\n",
|
||||
i - 1,
|
||||
data[i - 4],
|
||||
data[i - 3],
|
||||
&data[i]);
|
||||
gspca_dbg(gspca_dev, D_FRAM,
|
||||
"header found at offset: %d: %02x %02x 00 %3ph\n\n",
|
||||
i - 1,
|
||||
data[i - 4],
|
||||
data[i - 3],
|
||||
&data[i]);
|
||||
else
|
||||
PDEBUG(D_FRAM,
|
||||
"header found at offset: %d: 00 %3ph\n",
|
||||
i - 1,
|
||||
&data[i]);
|
||||
gspca_dbg(gspca_dev, D_FRAM,
|
||||
"header found at offset: %d: 00 %3ph\n\n",
|
||||
i - 1,
|
||||
&data[i]);
|
||||
return data + i + (sd->sof_len - 1);
|
||||
}
|
||||
break;
|
||||
|
Reference in New Issue
Block a user