Linux Media Controller development
 help / color / mirror / Atom feed
* [PATCH v1 1/1] media: tda18250: Use %*ph to print small buffer
@ 2026-06-03 11:17 Andy Shevchenko
  2026-06-03 11:35 ` sashiko-bot
  0 siblings, 1 reply; 3+ messages in thread
From: Andy Shevchenko @ 2026-06-03 11:17 UTC (permalink / raw)
  To: linux-media, linux-kernel
  Cc: Olli Salonen, Mauro Carvalho Chehab, Andy Shevchenko

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

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/media/tuners/tda18250.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/media/tuners/tda18250.c b/drivers/media/tuners/tda18250.c
index 7bb945ba0989..9dbb5ea3b487 100644
--- a/drivers/media/tuners/tda18250.c
+++ b/drivers/media/tuners/tda18250.c
@@ -804,8 +804,7 @@ static int tda18250_probe(struct i2c_client *client)
 
 	/* read the three chip ID registers */
 	regmap_bulk_read(dev->regmap, R00_ID1, &chip_id, 3);
-	dev_dbg(&client->dev, "chip_id=%02x:%02x:%02x",
-			chip_id[0], chip_id[1], chip_id[2]);
+	dev_dbg(&client->dev, "chip_id=%3phC", chip_id);
 
 	switch (chip_id[0]) {
 	case 0xc7:
-- 
2.50.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-06-04  8:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-03 11:17 [PATCH v1 1/1] media: tda18250: Use %*ph to print small buffer Andy Shevchenko
2026-06-03 11:35 ` sashiko-bot
2026-06-04  8:58   ` Andy Shevchenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox