diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2012-08-07 11:43:05 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-08-13 15:38:19 -0400 |
commit | 4141e720684a59b08b31c056dbbaebe911874edb (patch) | |
tree | ac775181c12594cab6d1d66b52b66f32fe1cea9b /drivers | |
parent | c6480cccdbaf1e9f3d1489c0530f011543cca90b (diff) |
[media] dvb: frontends: use %*ph to dump small buffers
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/dvb/frontends/cxd2820r_t.c | 3 | ||||
-rw-r--r-- | drivers/media/dvb/frontends/nxt200x.c | 8 | ||||
-rw-r--r-- | drivers/media/dvb/frontends/rtl2830.c | 2 |
3 files changed, 5 insertions, 8 deletions
diff --git a/drivers/media/dvb/frontends/cxd2820r_t.c b/drivers/media/dvb/frontends/cxd2820r_t.c index 1a026239cdc..e5dd22bc16b 100644 --- a/drivers/media/dvb/frontends/cxd2820r_t.c +++ b/drivers/media/dvb/frontends/cxd2820r_t.c | |||
@@ -389,8 +389,7 @@ int cxd2820r_read_status_t(struct dvb_frontend *fe, fe_status_t *status) | |||
389 | } | 389 | } |
390 | } | 390 | } |
391 | 391 | ||
392 | dbg("%s: lock=%02x %02x %02x %02x", __func__, | 392 | dbg("%s: lock=%*ph", __func__, 4, buf); |
393 | buf[0], buf[1], buf[2], buf[3]); | ||
394 | 393 | ||
395 | return ret; | 394 | return ret; |
396 | error: | 395 | error: |
diff --git a/drivers/media/dvb/frontends/nxt200x.c b/drivers/media/dvb/frontends/nxt200x.c index 03af52ec2c5..8e288940a61 100644 --- a/drivers/media/dvb/frontends/nxt200x.c +++ b/drivers/media/dvb/frontends/nxt200x.c | |||
@@ -331,7 +331,7 @@ static int nxt200x_writetuner (struct nxt200x_state* state, u8* data) | |||
331 | 331 | ||
332 | dprintk("%s\n", __func__); | 332 | dprintk("%s\n", __func__); |
333 | 333 | ||
334 | dprintk("Tuner Bytes: %02X %02X %02X %02X\n", data[1], data[2], data[3], data[4]); | 334 | dprintk("Tuner Bytes: %*ph\n", 4, data + 1); |
335 | 335 | ||
336 | /* if NXT2004, write directly to tuner. if NXT2002, write through NXT chip. | 336 | /* if NXT2004, write directly to tuner. if NXT2002, write through NXT chip. |
337 | * direct write is required for Philips TUV1236D and ALPS TDHU2 */ | 337 | * direct write is required for Philips TUV1236D and ALPS TDHU2 */ |
@@ -1161,8 +1161,7 @@ struct dvb_frontend* nxt200x_attach(const struct nxt200x_config* config, | |||
1161 | 1161 | ||
1162 | /* read card id */ | 1162 | /* read card id */ |
1163 | nxt200x_readbytes(state, 0x00, buf, 5); | 1163 | nxt200x_readbytes(state, 0x00, buf, 5); |
1164 | dprintk("NXT info: %02X %02X %02X %02X %02X\n", | 1164 | dprintk("NXT info: %*ph\n", 5, buf); |
1165 | buf[0], buf[1], buf[2], buf[3], buf[4]); | ||
1166 | 1165 | ||
1167 | /* set demod chip */ | 1166 | /* set demod chip */ |
1168 | switch (buf[0]) { | 1167 | switch (buf[0]) { |
@@ -1201,8 +1200,7 @@ struct dvb_frontend* nxt200x_attach(const struct nxt200x_config* config, | |||
1201 | 1200 | ||
1202 | error: | 1201 | error: |
1203 | kfree(state); | 1202 | kfree(state); |
1204 | printk("Unknown/Unsupported NXT chip: %02X %02X %02X %02X %02X\n", | 1203 | pr_err("Unknown/Unsupported NXT chip: %*ph\n", 5, buf); |
1205 | buf[0], buf[1], buf[2], buf[3], buf[4]); | ||
1206 | return NULL; | 1204 | return NULL; |
1207 | } | 1205 | } |
1208 | 1206 | ||
diff --git a/drivers/media/dvb/frontends/rtl2830.c b/drivers/media/dvb/frontends/rtl2830.c index 93612ebac51..8fa8b0854e7 100644 --- a/drivers/media/dvb/frontends/rtl2830.c +++ b/drivers/media/dvb/frontends/rtl2830.c | |||
@@ -392,7 +392,7 @@ static int rtl2830_get_frontend(struct dvb_frontend *fe) | |||
392 | if (ret) | 392 | if (ret) |
393 | goto err; | 393 | goto err; |
394 | 394 | ||
395 | dbg("%s: TPS=%02x %02x %02x", __func__, buf[0], buf[1], buf[2]); | 395 | dbg("%s: TPS=%*ph", __func__, 3, buf); |
396 | 396 | ||
397 | switch ((buf[0] >> 2) & 3) { | 397 | switch ((buf[0] >> 2) & 3) { |
398 | case 0: | 398 | case 0: |