* [PATCH v1 1/1] media: tda18250: Use %*ph to print small buffer
@ 2026-06-03 11:17 Andy Shevchenko
0 siblings, 0 replies; only message 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 [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-03 11:17 UTC | newest]
Thread overview: (only message) (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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®