提交 0da5176f 编写于 作者: M Mauro Carvalho Chehab

V4L/DVB (7161): em28xx: Fix printing debug values higher than 127

Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
上级 1e7ad56f
......@@ -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");
}
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册