diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2012-09-05 12:04:19 (GMT) |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-09-13 01:28:30 (GMT) |
commit | 9a6a4b4757175271bc3a289fcb5c69e897039379 (patch) | |
tree | 884ee5d857bfbf08b32258307be7d43f8cc76179 /drivers/gpu/drm/udl | |
parent | 14f77fdd58773245a0eae4243c039a420a52c820 (diff) | |
download | linux-fsl-qoriq-9a6a4b4757175271bc3a289fcb5c69e897039379.tar.xz |
drm: use %*ph to dump small buffers
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/udl')
-rw-r--r-- | drivers/gpu/drm/udl/udl_main.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/gpu/drm/udl/udl_main.c b/drivers/gpu/drm/udl/udl_main.c index 4c2d836..40bf468 100644 --- a/drivers/gpu/drm/udl/udl_main.c +++ b/drivers/gpu/drm/udl/udl_main.c @@ -41,11 +41,8 @@ static int udl_parse_vendor_descriptor(struct drm_device *dev, total_len = usb_get_descriptor(usbdev, 0x5f, /* vendor specific */ 0, desc, MAX_VENDOR_DESCRIPTOR_SIZE); if (total_len > 5) { - DRM_INFO("vendor descriptor length:%x data:%02x %02x %02x %02x" \ - "%02x %02x %02x %02x %02x %02x %02x\n", - total_len, desc[0], - desc[1], desc[2], desc[3], desc[4], desc[5], desc[6], - desc[7], desc[8], desc[9], desc[10]); + DRM_INFO("vendor descriptor length:%x data:%*ph\n", + total_len, 11, desc); if ((desc[0] != total_len) || /* descriptor length */ (desc[1] != 0x5f) || /* vendor descriptor type */ |