diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-02-06 13:55:19 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-02-06 13:55:19 -0200 |
commit | f7fd21f70b935c84ecc4e250369d381eb187482a (patch) | |
tree | f4a39440b20f1feac37fc094089d24870801428a /linux/drivers | |
parent | 6d8efedeb82d64e349ac05e4371b5c7be6c3e239 (diff) | |
download | mediapointer-dvb-s2-f7fd21f70b935c84ecc4e250369d381eb187482a.tar.gz mediapointer-dvb-s2-f7fd21f70b935c84ecc4e250369d381eb187482a.tar.bz2 |
em28xx: Fix printing debug values higher than 127
From: Mauro Carvalho Chehab <mchehab@infradead.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers')
-rw-r--r-- | linux/drivers/media/video/em28xx/em28xx-core.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/linux/drivers/media/video/em28xx/em28xx-core.c b/linux/drivers/media/video/em28xx/em28xx-core.c index 3af2792a7..f2686bde0 100644 --- a/linux/drivers/media/video/em28xx/em28xx-core.c +++ b/linux/drivers/media/video/em28xx/em28xx-core.c @@ -201,7 +201,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"); } @@ -228,7 +228,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; |