aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/video/em28xx/em28xx-core.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/media/video/em28xx/em28xx-core.c b/drivers/media/video/em28xx/em28xx-core.c
index 4ffb8d0bc52a..6965bafe54a1 100644
--- a/drivers/media/video/em28xx/em28xx-core.c
+++ b/drivers/media/video/em28xx/em28xx-core.c
@@ -150,7 +150,7 @@ int em28xx_read_reg_req_len(struct em28xx *dev, u8 req, u16 reg,
150 if (reg_debug){ 150 if (reg_debug){
151 printk(ret < 0 ? " failed!\n" : "%02x values: ", ret); 151 printk(ret < 0 ? " failed!\n" : "%02x values: ", ret);
152 for (byte = 0; byte < len; byte++) { 152 for (byte = 0; byte < len; byte++) {
153 printk(" %02x", buf[byte]); 153 printk(" %02x", (unsigned char)buf[byte]);
154 } 154 }
155 printk("\n"); 155 printk("\n");
156 } 156 }
@@ -177,7 +177,8 @@ int em28xx_read_reg_req(struct em28xx *dev, u8 req, u16 reg)
177 0x0000, reg, &val, 1, HZ); 177 0x0000, reg, &val, 1, HZ);
178 178
179 if (reg_debug) 179 if (reg_debug)
180 printk(ret < 0 ? " failed!\n" : "%02x\n", val); 180 printk(ret < 0 ? " failed!\n" :
181 "%02x\n", (unsigned char) val);
181 182
182 if (ret < 0) 183 if (ret < 0)
183 return ret; 184 return ret;