aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/common
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2012-08-07 11:43:03 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-08-13 15:37:30 -0400
commitc6480cccdbaf1e9f3d1489c0530f011543cca90b (patch)
treed74252d8e60a5d7249a483f5d41fba6cc8cbc2b0 /drivers/media/common
parent9adf6132dca24240fbc26c6e5e095734fa366341 (diff)
[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>
Diffstat (limited to 'drivers/media/common')
-rw-r--r--drivers/media/common/tuners/tuner-xc2028.c3
-rw-r--r--drivers/media/common/tuners/xc4000.c3
2 files changed, 2 insertions, 4 deletions
diff --git a/drivers/media/common/tuners/tuner-xc2028.c b/drivers/media/common/tuners/tuner-xc2028.c
index 49e63ec040b6..7bcb6b0ff1df 100644
--- a/drivers/media/common/tuners/tuner-xc2028.c
+++ b/drivers/media/common/tuners/tuner-xc2028.c
@@ -1126,8 +1126,7 @@ static int generic_set_freq(struct dvb_frontend *fe, u32 freq /* in HZ */,
1126 1126
1127 priv->frequency = freq; 1127 priv->frequency = freq;
1128 1128
1129 tuner_dbg("divisor= %02x %02x %02x %02x (freq=%d.%03d)\n", 1129 tuner_dbg("divisor= %*ph (freq=%d.%03d)\n", 4, buf,
1130 buf[0], buf[1], buf[2], buf[3],
1131 freq / 1000000, (freq % 1000000) / 1000); 1130 freq / 1000000, (freq % 1000000) / 1000);
1132 1131
1133 rc = 0; 1132 rc = 0;
diff --git a/drivers/media/common/tuners/xc4000.c b/drivers/media/common/tuners/xc4000.c
index 68397110b7d9..4937712278f6 100644
--- a/drivers/media/common/tuners/xc4000.c
+++ b/drivers/media/common/tuners/xc4000.c
@@ -263,8 +263,7 @@ static int xc_send_i2c_data(struct xc4000_priv *priv, u8 *buf, int len)
263 printk(KERN_ERR "xc4000: I2C write failed (len=%i)\n", 263 printk(KERN_ERR "xc4000: I2C write failed (len=%i)\n",
264 len); 264 len);
265 if (len == 4) { 265 if (len == 4) {
266 printk(KERN_ERR "bytes %02x %02x %02x %02x\n", buf[0], 266 printk(KERN_ERR "bytes %*ph\n", 4, buf);
267 buf[1], buf[2], buf[3]);
268 } 267 }
269 return -EREMOTEIO; 268 return -EREMOTEIO;
270 } 269 }