Skip to content

Commit

Permalink
V4L/DVB (7161): em28xx: Fix printing debug values higher than 127
Browse files Browse the repository at this point in the history
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
  • Loading branch information
Mauro Carvalho Chehab committed Feb 18, 2008
1 parent 1e7ad56 commit 0da5176
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/media/video/em28xx/em28xx-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ 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(" %02x", buf[byte]);
printk(" %02x", (unsigned char)buf[byte]);
}
printk("\n");
}
Expand All @@ -177,7 +177,8 @@ int em28xx_read_reg_req(struct em28xx *dev, u8 req, u16 reg)
0x0000, reg, &val, 1, HZ);

if (reg_debug)
printk(ret < 0 ? " failed!\n" : "%02x\n", val);
printk(ret < 0 ? " failed!\n" :
"%02x\n", (unsigned char) val);

if (ret < 0)
return ret;
Expand Down

0 comments on commit 0da5176

Please sign in to comment.