* [PATCH v1 1/1] drm/panel: sony-acx565akm: Use %*ph to print small buffer
@ 2024-09-11 20:01 Andy Shevchenko
2024-09-13 9:09 ` Neil Armstrong
2024-09-13 9:18 ` Neil Armstrong
0 siblings, 2 replies; 3+ messages in thread
From: Andy Shevchenko @ 2024-09-11 20:01 UTC (permalink / raw)
To: Linus Walleij, dri-devel, linux-kernel
Cc: Neil Armstrong, Jessica Zhang, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, David Airlie, Simona Vetter, Andy Shevchenko
Use %*ph format to print small buffer as hex string.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
drivers/gpu/drm/panel/panel-sony-acx565akm.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/panel/panel-sony-acx565akm.c b/drivers/gpu/drm/panel/panel-sony-acx565akm.c
index 217f03569494..d437f5c84f5f 100644
--- a/drivers/gpu/drm/panel/panel-sony-acx565akm.c
+++ b/drivers/gpu/drm/panel/panel-sony-acx565akm.c
@@ -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:
--
2.43.0.rc1.1336.g36b5255a03ac
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v1 1/1] drm/panel: sony-acx565akm: Use %*ph to print small buffer
2024-09-11 20:01 [PATCH v1 1/1] drm/panel: sony-acx565akm: Use %*ph to print small buffer Andy Shevchenko
@ 2024-09-13 9:09 ` Neil Armstrong
2024-09-13 9:18 ` Neil Armstrong
1 sibling, 0 replies; 3+ messages in thread
From: Neil Armstrong @ 2024-09-13 9:09 UTC (permalink / raw)
To: Andy Shevchenko, Linus Walleij, dri-devel, linux-kernel
Cc: Jessica Zhang, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, David Airlie, Simona Vetter
On 11/09/2024 22:01, Andy Shevchenko wrote:
> Use %*ph format to print small buffer as hex string.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
> drivers/gpu/drm/panel/panel-sony-acx565akm.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/panel/panel-sony-acx565akm.c b/drivers/gpu/drm/panel/panel-sony-acx565akm.c
> index 217f03569494..d437f5c84f5f 100644
> --- a/drivers/gpu/drm/panel/panel-sony-acx565akm.c
> +++ b/drivers/gpu/drm/panel/panel-sony-acx565akm.c
> @@ -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 <neil.armstrong@linaro.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v1 1/1] drm/panel: sony-acx565akm: Use %*ph to print small buffer
2024-09-11 20:01 [PATCH v1 1/1] drm/panel: sony-acx565akm: Use %*ph to print small buffer Andy Shevchenko
2024-09-13 9:09 ` Neil Armstrong
@ 2024-09-13 9:18 ` Neil Armstrong
1 sibling, 0 replies; 3+ messages in thread
From: Neil Armstrong @ 2024-09-13 9:18 UTC (permalink / raw)
To: Linus Walleij, dri-devel, linux-kernel, Andy Shevchenko
Cc: Jessica Zhang, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, David Airlie, Simona Vetter
Hi,
On Wed, 11 Sep 2024 23:01:25 +0300, Andy Shevchenko wrote:
> 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
--
Neil
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-09-13 9:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-11 20:01 [PATCH v1 1/1] drm/panel: sony-acx565akm: Use %*ph to print small buffer Andy Shevchenko
2024-09-13 9:09 ` Neil Armstrong
2024-09-13 9:18 ` Neil Armstrong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox