Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e428744a authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

[media] tuner-core: use %&ph for small buffer dumps



This driver has a printk with a continuation lines for debugging purposes.
 Since commit 56387331 ("Merge branch 'printk-cleanups'"), this
won't work anymore. We might be using KERNEL_CONT, but it is better
to just use a single printk line using %*ph for buffer dump.

Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 0919f3a0
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -617,14 +617,12 @@ static int tuner_probe(struct i2c_client *client,

	if (show_i2c) {
		unsigned char buffer[16];
		int i, rc;
		int rc;

		memset(buffer, 0, sizeof(buffer));
		rc = i2c_master_recv(client, buffer, sizeof(buffer));
		tuner_info("I2C RECV = ");
		for (i = 0; i < rc; i++)
			printk(KERN_CONT "%02x ", buffer[i]);
		printk("\n");
		if (rc >= 0)
			tuner_info("I2C RECV = %*ph\n", rc, buffer);
	}

	/* autodetection code based on the i2c addr */