Commit c5bac2e7 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[media] mt20xx: use %*ph to do small hexa dumps

Since commit 56387331 ("Merge branch 'printk-cleanups"),
continuation lines require KERN_CONT. Instead, let's just
use %*ph to print the buffer.
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 832d40c0
...@@ -487,13 +487,8 @@ static void mt2050_set_if_freq(struct dvb_frontend *fe,unsigned int freq, unsign ...@@ -487,13 +487,8 @@ static void mt2050_set_if_freq(struct dvb_frontend *fe,unsigned int freq, unsign
buf[5]=div2a; buf[5]=div2a;
if(num2!=0) buf[5]=buf[5]|0x40; if(num2!=0) buf[5]=buf[5]|0x40;
if (debug > 1) { if (debug > 1)
int i; tuner_dbg("bufs is: %*ph\n", 6, buf);
tuner_dbg("bufs is: ");
for(i=0;i<6;i++)
printk("%x ",buf[i]);
printk("\n");
}
ret=tuner_i2c_xfer_send(&priv->i2c_props,buf,6); ret=tuner_i2c_xfer_send(&priv->i2c_props,buf,6);
if (ret!=6) if (ret!=6)
...@@ -619,15 +614,9 @@ struct dvb_frontend *microtune_attach(struct dvb_frontend *fe, ...@@ -619,15 +614,9 @@ struct dvb_frontend *microtune_attach(struct dvb_frontend *fe,
tuner_i2c_xfer_send(&priv->i2c_props,buf,1); tuner_i2c_xfer_send(&priv->i2c_props,buf,1);
tuner_i2c_xfer_recv(&priv->i2c_props,buf,21); tuner_i2c_xfer_recv(&priv->i2c_props,buf,21);
if (debug) { if (debug)
int i; tuner_dbg("MT20xx hexdump: %*ph\n", 21, buf);
tuner_dbg("MT20xx hexdump:");
for(i=0;i<21;i++) {
printk(" %02x",buf[i]);
if(((i+1)%8)==0) printk(" ");
}
printk("\n");
}
company_code = buf[0x11] << 8 | buf[0x12]; company_code = buf[0x11] << 8 | buf[0x12];
tuner_info("microtune: companycode=%04x part=%02x rev=%02x\n", tuner_info("microtune: companycode=%04x part=%02x rev=%02x\n",
company_code,buf[0x13],buf[0x14]); company_code,buf[0x13],buf[0x14]);
......
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