drm/panel: sony-acx565akm: Use %*ph to print small buffer
Subsystems (3)
PATCH 1/1 drm/panel: sony-acx565akm: Use %*ph to print small buffer
Use %*ph format to print small buffer as hex string.
Signed-off-by Andy Shevchenko <[email protected]>
--- drivers/gpu/drm/panel/panel-sony-acx565akm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/panel/panel-sony-acx565akm.c +1 -2
@@ -562,8 +562,7 @@ static int acx565akm_detect(struct acx565akm_panel *lcd) lcd->enabled ? "enabled" : "disabled ", status);acx565akm_read (lcd,MIPI_DCS_GET_DISPLAY_ID , lcd->display_id,3 ); -dev_dbg (&lcd->spi->dev,"MIPI display ID: %02x%02x%02x\n" , - lcd->display_id[0 ], lcd->display_id[1 ], lcd->display_id[2 ]); +dev_dbg (&lcd->spi->dev,"MIPI display ID: %3phN\n" , lcd->display_id);switch (lcd->display_id[0 ]) {case 0x10 :
Signature · 1 line
2.43.0.rc1.1336.g36b5255a03ac
Quoted 12 lines · Andy Shevchenko
Use %*ph format to print small buffer as hex string.
Signed-off-by Andy Shevchenko <[email protected]>--- drivers/gpu/drm/panel/panel-sony-acx565akm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/gpu/drm/panel/panel-sony-acx565akm.c +0
-0
drivers/gpu/drm/panel/panel-sony-acx565akm.c static int acx565akm_detect(struct acx565akm_panel *lcd) · line 568
Quoted 9 lines
drivers/gpu/drm/panel/panel-sony-acx565akm.c +1
-2@@ -562,8 +562,7 @@ static int acx565akm_detect(struct acx565akm_panel *lcd) lcd->enabled ? "enabled" : "disabled ", status);acx565akm_read (lcd,MIPI_DCS_GET_DISPLAY_ID , lcd->display_id,3 ); -dev_dbg (&lcd->spi->dev,"MIPI display ID: %02x%02x%02x\n" , - lcd->display_id[0 ], lcd->display_id[1 ], lcd->display_id[2 ]); +dev_dbg (&lcd->spi->dev,"MIPI display ID: %3phN\n" , lcd->display_id);switch (lcd->display_id[0 ]) {case 0x10 :
Reviewed-by Neil Armstrong <[email protected]>
Hi,
Quoted 3 lines · Andy Shevchenko
Use %*ph format to print small buffer as hex string.
Thanks, Applied to https://gitlab.freedesktop.org/drm/misc/kernel.git (drm-misc-next)
[1/1] drm/panel: sony-acx565akm: Use %*ph to print small buffer
https://gitlab.freedesktop.org/drm/misc/kernel/-/commit/9550e2394fc09bf105a246221660da980c2dbd66
Signature · 1 line
Neil