Skip to content

Commit

Permalink
V4L/DVB (7614): em28xx-core: fix some debug printk's that wrongly rec…
Browse files Browse the repository at this point in the history
…eived KERN_INFO

Those printk's were adding more info to a line that were already being
printed.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
  • Loading branch information
Mauro Carvalho Chehab committed Apr 24, 2008
1 parent 41facaa commit 82ac4f8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/media/video/em28xx/em28xx-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ int em28xx_read_reg_req_len(struct em28xx *dev, u8 req, u16 reg,
if (reg_debug) {
printk(ret < 0 ? " failed!\n" : "%02x values: ", ret);
for (byte = 0; byte < len; byte++)
printk(KERN_INFO " %02x", (unsigned char)buf[byte]);
printk(" %02x", (unsigned char)buf[byte]);

printk(KERN_INFO "\n");
printk("\n");
}

return ret;
Expand Down Expand Up @@ -143,8 +143,8 @@ int em28xx_write_regs_req(struct em28xx *dev, u8 req, u16 reg, char *buf,
if (reg_debug) {
int i;
for (i = 0; i < len; ++i)
printk(KERN_INFO " %02x", (unsigned char)buf[i]);
printk(KERN_INFO "\n");
printk(" %02x", (unsigned char)buf[i]);
printk("\n");
}

if (!bufs)
Expand Down

0 comments on commit 82ac4f8

Please sign in to comment.