Skip to contentSkip to conversation

drm/amd/display: Use %*ph to print small buffer

PATCH New Andy Shevchenko 1 participant 1 message Jun 3

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amd/display: Use %*ph to print small buffer

Use %*ph format to print small buffer as hex string.

---
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c +1 -1
index 51924ae87705..ecdd4bac42e5 100644
@@ -757,7 +757,7 @@ void dm_handle_mst_sideband_msg_ready_event(
 			break;
 		}
 
-		DRM_DEBUG_DRIVER("ESI %02x %02x %02x\n", esi[0], esi[1], esi[2]);
+		DRM_DEBUG_DRIVER("ESI %3ph\n", esi);
 
 		switch (msg_rdy_type) {
 		case DOWN_REP_MSG_RDY_EVENT:
Signature · 1 line
2.50.1