Commit 9a6a4b47 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Dave Airlie

drm: use %*ph to dump small buffers

Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 14f77fdd
...@@ -289,9 +289,7 @@ dp_link_train_update(struct drm_device *dev, struct dp_state *dp, u32 delay) ...@@ -289,9 +289,7 @@ dp_link_train_update(struct drm_device *dev, struct dp_state *dp, u32 delay)
if (ret) if (ret)
return ret; return ret;
NV_DEBUG_KMS(dev, "status %02x %02x %02x %02x %02x %02x\n", NV_DEBUG_KMS(dev, "status %*ph\n", 6, dp->stat);
dp->stat[0], dp->stat[1], dp->stat[2], dp->stat[3],
dp->stat[4], dp->stat[5]);
return 0; return 0;
} }
......
...@@ -658,9 +658,7 @@ static bool radeon_dp_get_link_status(struct radeon_connector *radeon_connector, ...@@ -658,9 +658,7 @@ static bool radeon_dp_get_link_status(struct radeon_connector *radeon_connector,
return false; return false;
} }
DRM_DEBUG_KMS("link status %02x %02x %02x %02x %02x %02x\n", DRM_DEBUG_KMS("link status %*ph\n", 6, link_status);
link_status[0], link_status[1], link_status[2],
link_status[3], link_status[4], link_status[5]);
return true; return true;
} }
......
...@@ -41,11 +41,8 @@ static int udl_parse_vendor_descriptor(struct drm_device *dev, ...@@ -41,11 +41,8 @@ static int udl_parse_vendor_descriptor(struct drm_device *dev,
total_len = usb_get_descriptor(usbdev, 0x5f, /* vendor specific */ total_len = usb_get_descriptor(usbdev, 0x5f, /* vendor specific */
0, desc, MAX_VENDOR_DESCRIPTOR_SIZE); 0, desc, MAX_VENDOR_DESCRIPTOR_SIZE);
if (total_len > 5) { if (total_len > 5) {
DRM_INFO("vendor descriptor length:%x data:%02x %02x %02x %02x" \ DRM_INFO("vendor descriptor length:%x data:%*ph\n",
"%02x %02x %02x %02x %02x %02x %02x\n", total_len, 11, desc);
total_len, desc[0],
desc[1], desc[2], desc[3], desc[4], desc[5], desc[6],
desc[7], desc[8], desc[9], desc[10]);
if ((desc[0] != total_len) || /* descriptor length */ if ((desc[0] != total_len) || /* descriptor length */
(desc[1] != 0x5f) || /* vendor descriptor type */ (desc[1] != 0x5f) || /* vendor descriptor type */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment