This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/cgit.cgi/media_tree.git tree:

Subject: [media] mceusb: use %*ph for small buffer dumps
Author:  Mauro Carvalho Chehab <[email protected]>
Date:    Sun Mar 6 10:00:09 2016 -0300

It makes the printk cleaner. As a side efect, it also fixes those smatch
warnings:
        drivers/media/rc/mceusb.c:590 mceusb_dev_printdata() warn: argument 6 
to %02x specifier has type 'char'
        drivers/media/rc/mceusb.c:590 mceusb_dev_printdata() warn: argument 7 
to %02x specifier has type 'char'

Signed-off-by: Mauro Carvalho Chehab <[email protected]>

 drivers/media/rc/mceusb.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

---

http://git.linuxtv.org/cgit.cgi/media_tree.git/commit/?id=eef8fc374c131647ea9eea3301f06f4eee7f51ae
diff --git a/drivers/media/rc/mceusb.c b/drivers/media/rc/mceusb.c
index 2cdb740cde48..35155ae500c7 100644
--- a/drivers/media/rc/mceusb.c
+++ b/drivers/media/rc/mceusb.c
@@ -587,9 +587,8 @@ static void mceusb_dev_printdata(struct mceusb_dev *ir, 
char *buf,
                        if (len == 2)
                                dev_dbg(dev, "Get hw/sw rev?");
                        else
-                               dev_dbg(dev, "hw/sw rev 0x%02x 0x%02x 0x%02x 
0x%02x",
-                                        data1, data2,
-                                        buf[start + 4], buf[start + 5]);
+                               dev_dbg(dev, "hw/sw rev %*ph",
+                                       4, &buf[start + 2]);
                        break;
                case MCE_CMD_RESUME:
                        dev_dbg(dev, "Device resume requested");

_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to