mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-19 07:27:50 +00:00
[media] common: tunners: use %*ph to dump small buffers
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
9adf6132dc
commit
c6480cccdb
@ -1126,8 +1126,7 @@ static int generic_set_freq(struct dvb_frontend *fe, u32 freq /* in HZ */,
|
|||||||
|
|
||||||
priv->frequency = freq;
|
priv->frequency = freq;
|
||||||
|
|
||||||
tuner_dbg("divisor= %02x %02x %02x %02x (freq=%d.%03d)\n",
|
tuner_dbg("divisor= %*ph (freq=%d.%03d)\n", 4, buf,
|
||||||
buf[0], buf[1], buf[2], buf[3],
|
|
||||||
freq / 1000000, (freq % 1000000) / 1000);
|
freq / 1000000, (freq % 1000000) / 1000);
|
||||||
|
|
||||||
rc = 0;
|
rc = 0;
|
||||||
|
@ -263,8 +263,7 @@ static int xc_send_i2c_data(struct xc4000_priv *priv, u8 *buf, int len)
|
|||||||
printk(KERN_ERR "xc4000: I2C write failed (len=%i)\n",
|
printk(KERN_ERR "xc4000: I2C write failed (len=%i)\n",
|
||||||
len);
|
len);
|
||||||
if (len == 4) {
|
if (len == 4) {
|
||||||
printk(KERN_ERR "bytes %02x %02x %02x %02x\n", buf[0],
|
printk(KERN_ERR "bytes %*ph\n", 4, buf);
|
||||||
buf[1], buf[2], buf[3]);
|
|
||||||
}
|
}
|
||||||
return -EREMOTEIO;
|
return -EREMOTEIO;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user