[media] dvb-usb: print small buffers via %*ph
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 26 Sep 2012 12:55:14 +0000 (09:55 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 6 Oct 2012 15:25:49 +0000 (12:25 -0300)
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/usb/dvb-usb/a800.c
drivers/media/usb/dvb-usb/cinergyT2-core.c
drivers/media/usb/dvb-usb/dibusb-common.c
drivers/media/usb/dvb-usb/digitv.c
drivers/media/usb/dvb-usb/dtt200u.c
drivers/media/usb/dvb-usb/m920x.c

index 8d7fef84afd8b5d0d2b93c1d49ec7e7306f3d94a..83684ed023cd9bba08a20ae9cfe682f636da5a36 100644 (file)
@@ -93,7 +93,7 @@ static int a800_rc_query(struct dvb_usb_device *d, u32 *event, int *state)
        /* call the universal NEC remote processor, to find out the key's state and event */
        dvb_usb_nec_rc_key_to_event(d,key,event,state);
        if (key[0] != 0)
-               deb_rc("key: %x %x %x %x %x\n",key[0],key[1],key[2],key[3],key[4]);
+               deb_rc("key: %*ph\n", 5, key);
        ret = 0;
 out:
        kfree(key);
index 0a98548ecd172448bed6c60b0cf9a5ee182c6ca8..9fd1527494ebd65ab200c38f13a20e28330034a1 100644 (file)
@@ -172,8 +172,7 @@ static int cinergyt2_rc_query(struct dvb_usb_device *d, u32 *event, int *state)
                if (*event != d->last_event)
                        st->rc_counter = 0;
 
-               deb_rc("key: %x %x %x %x %x\n",
-                      key[0], key[1], key[2], key[3], key[4]);
+               deb_rc("key: %*ph\n", 5, key);
        }
        return 0;
 }
index a76bbb29ca36eeb0c5a3cfc0b42fe9a7ae422df8..af0d4321845b575589ca5a045eb2490f207d1d42 100644 (file)
@@ -473,7 +473,7 @@ int dibusb_rc_query(struct dvb_usb_device *d, u32 *event, int *state)
        dvb_usb_generic_rw(d,&cmd,1,key,5,0);
        dvb_usb_nec_rc_key_to_event(d,key,event,state);
        if (key[0] != 0)
-               deb_info("key: %x %x %x %x %x\n",key[0],key[1],key[2],key[3],key[4]);
+               deb_info("key: %*ph\n", 5, key);
        return 0;
 }
 EXPORT_SYMBOL(dibusb_rc_query);
index ff34419a4c88438ca74ac0eac19180d9fbeafd07..772bde3c5020a63b026567cf6e62ba44f2c8714b 100644 (file)
@@ -253,7 +253,7 @@ static int digitv_rc_query(struct dvb_usb_device *d, u32 *event, int *state)
        }
 
        if (key[0] != 0)
-               deb_rc("key: %x %x %x %x %x\n",key[0],key[1],key[2],key[3],key[4]);
+               deb_rc("key: %*ph\n", 5, key);
        return 0;
 }
 
index 66f205c112b2fe784d5bff6dc1ed0033ee606d68..c357fb3b0a883c382a6c480a0c9567f665f8d10e 100644 (file)
@@ -84,7 +84,7 @@ static int dtt200u_rc_query(struct dvb_usb_device *d, u32 *event, int *state)
        dvb_usb_generic_rw(d,&cmd,1,key,5,0);
        dvb_usb_nec_rc_key_to_event(d,key,event,state);
        if (key[0] != 0)
-               deb_info("key: %x %x %x %x %x\n",key[0],key[1],key[2],key[3],key[4]);
+               deb_info("key: %*ph\n", 5, key);
        return 0;
 }
 
index 288af29a8bb74294195119343b50151b9f044ec9..661bb75be955c7f6ba474382675aa50755b2ed4f 100644 (file)
@@ -358,7 +358,7 @@ static int m920x_firmware_download(struct usb_device *udev, const struct firmwar
 
        if ((ret = m920x_read(udev, M9206_FILTER, 0x0, 0x8000, read, 4)) != 0)
                goto done;
-       deb("%x %x %x %x\n", read[0], read[1], read[2], read[3]);
+       deb("%*ph\n", 4, read);
 
        if ((ret = m920x_read(udev, M9206_FW, 0x0, 0x0, read, 1)) != 0)
                goto done;