Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] dvb-usb: print small buffers via %*ph

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

authored by

Andy Shevchenko and committed by
Mauro Carvalho Chehab
5bdb7872 5712661d

+6 -7
+1 -1
drivers/media/usb/dvb-usb/a800.c
··· 93 93 /* call the universal NEC remote processor, to find out the key's state and event */ 94 94 dvb_usb_nec_rc_key_to_event(d,key,event,state); 95 95 if (key[0] != 0) 96 - deb_rc("key: %x %x %x %x %x\n",key[0],key[1],key[2],key[3],key[4]); 96 + deb_rc("key: %*ph\n", 5, key); 97 97 ret = 0; 98 98 out: 99 99 kfree(key);
+1 -2
drivers/media/usb/dvb-usb/cinergyT2-core.c
··· 172 172 if (*event != d->last_event) 173 173 st->rc_counter = 0; 174 174 175 - deb_rc("key: %x %x %x %x %x\n", 176 - key[0], key[1], key[2], key[3], key[4]); 175 + deb_rc("key: %*ph\n", 5, key); 177 176 } 178 177 return 0; 179 178 }
+1 -1
drivers/media/usb/dvb-usb/dibusb-common.c
··· 473 473 dvb_usb_generic_rw(d,&cmd,1,key,5,0); 474 474 dvb_usb_nec_rc_key_to_event(d,key,event,state); 475 475 if (key[0] != 0) 476 - deb_info("key: %x %x %x %x %x\n",key[0],key[1],key[2],key[3],key[4]); 476 + deb_info("key: %*ph\n", 5, key); 477 477 return 0; 478 478 } 479 479 EXPORT_SYMBOL(dibusb_rc_query);
+1 -1
drivers/media/usb/dvb-usb/digitv.c
··· 253 253 } 254 254 255 255 if (key[0] != 0) 256 - deb_rc("key: %x %x %x %x %x\n",key[0],key[1],key[2],key[3],key[4]); 256 + deb_rc("key: %*ph\n", 5, key); 257 257 return 0; 258 258 } 259 259
+1 -1
drivers/media/usb/dvb-usb/dtt200u.c
··· 84 84 dvb_usb_generic_rw(d,&cmd,1,key,5,0); 85 85 dvb_usb_nec_rc_key_to_event(d,key,event,state); 86 86 if (key[0] != 0) 87 - deb_info("key: %x %x %x %x %x\n",key[0],key[1],key[2],key[3],key[4]); 87 + deb_info("key: %*ph\n", 5, key); 88 88 return 0; 89 89 } 90 90
+1 -1
drivers/media/usb/dvb-usb/m920x.c
··· 358 358 359 359 if ((ret = m920x_read(udev, M9206_FILTER, 0x0, 0x8000, read, 4)) != 0) 360 360 goto done; 361 - deb("%x %x %x %x\n", read[0], read[1], read[2], read[3]); 361 + deb("%*ph\n", 4, read); 362 362 363 363 if ((ret = m920x_read(udev, M9206_FW, 0x0, 0x0, read, 1)) != 0) 364 364 goto done;