]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[media] stv090x: get rid of continuation lines
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Thu, 13 Oct 2016 18:42:47 +0000 (15:42 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 18 Nov 2016 09:56:23 +0000 (07:56 -0200)
This driver has printk continuation lines for debugging purposes.
Since commit 563873318d32 ("Merge branch 'printk-cleanups'")',
this won't work as expected anymore.

So, use %*ph and get rid of it.

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/dvb-frontends/stv090x.c

index 25bdf6e0f9632d18a64c0c4e42bda005d0d80c51..42d62cc9a357812423d261bef4fa87901f4c4f29 100644 (file)
@@ -739,14 +739,8 @@ static int stv090x_write_regs(struct stv090x_state *state, unsigned int reg, u8
        buf[1] = reg & 0xff;
        memcpy(&buf[2], data, count);
 
-       if (unlikely(*state->verbose >= FE_DEBUGREG)) {
-               int i;
-
-               printk(KERN_DEBUG "%s [0x%04x]:", __func__, reg);
-               for (i = 0; i < count; i++)
-                       printk(" %02x", data[i]);
-               printk("\n");
-       }
+       dprintk(FE_DEBUGREG, 1, "%s [0x%04x]: %*ph",
+               __func__, reg, count, data);
 
        ret = i2c_transfer(state->i2c, &i2c_msg, 1);
        if (ret != 1) {