Commit 67dcfebd authored by Alexander Kuleshov's avatar Alexander Kuleshov Committed by Mauro Carvalho Chehab

[media] media/pci/cobalt: Use %*ph to print small buffers

printk() supports %*ph format specifier for printing a small buffers,
let's use it intead of %02x %02x...
Signed-off-by: default avatarAlexander Kuleshov <kuleshovmail@gmail.com>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent f1a81afc
...@@ -290,8 +290,8 @@ bool cobalt_cpld_set_freq(struct cobalt *cobalt, unsigned f_out) ...@@ -290,8 +290,8 @@ bool cobalt_cpld_set_freq(struct cobalt *cobalt, unsigned f_out)
0x01, 0xc7, 0xfc, 0x7f, 0x53, 0x62). 0x01, 0xc7, 0xfc, 0x7f, 0x53, 0x62).
*/ */
cobalt_dbg(1, "%u: %02x %02x %02x %02x %02x %02x\n", f_out, cobalt_dbg(1, "%u: %6ph\n", f_out, regs);
regs[0], regs[1], regs[2], regs[3], regs[4], regs[5]);
while (retries--) { while (retries--) {
u8 read_regs[6]; u8 read_regs[6];
...@@ -330,9 +330,7 @@ bool cobalt_cpld_set_freq(struct cobalt *cobalt, unsigned f_out) ...@@ -330,9 +330,7 @@ bool cobalt_cpld_set_freq(struct cobalt *cobalt, unsigned f_out)
if (!memcmp(read_regs, regs, sizeof(read_regs))) if (!memcmp(read_regs, regs, sizeof(read_regs)))
break; break;
cobalt_dbg(1, "retry: %02x %02x %02x %02x %02x %02x\n", cobalt_dbg(1, "retry: %6ph\n", read_regs);
read_regs[0], read_regs[1], read_regs[2],
read_regs[3], read_regs[4], read_regs[5]);
} }
if (2 - retries) if (2 - retries)
cobalt_info("Needed %d retries\n", 2 - retries); cobalt_info("Needed %d retries\n", 2 - retries);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment