summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrzej Hajda <a.hajda@samsung.com>2016-10-17 13:08:17 +0200
committerAndrzej Hajda <a.hajda@samsung.com>2016-10-17 15:26:32 +0200
commit5b9d1bf04d8d38dd5900017e2d4715a4e001c480 (patch)
treec708a732fe89a755d526ddeb4db90c10ba859a0c
parent56671cf917dffef1de2a25ca2f63d2207dabe3c0 (diff)
downloadlinux-exynos-5b9d1bf04d8d38dd5900017e2d4715a4e001c480.tar.gz
linux-exynos-5b9d1bf04d8d38dd5900017e2d4715a4e001c480.tar.bz2
linux-exynos-5b9d1bf04d8d38dd5900017e2d4715a4e001c480.zip
drm/bridge/sii8620: improve transfer logs
Use dev_dbg instead of pr_debug and prettify error logs. Change-Id: I2e7f568ce3fddab8607c83bfa3b6cdfa1af49586 Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
-rw-r--r--drivers/gpu/drm/bridge/sii8620.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/gpu/drm/bridge/sii8620.c b/drivers/gpu/drm/bridge/sii8620.c
index 25eef3a88252..c0c33d2de2de 100644
--- a/drivers/gpu/drm/bridge/sii8620.c
+++ b/drivers/gpu/drm/bridge/sii8620.c
@@ -137,12 +137,11 @@ static void sii8620_read_buf(struct sii8620 *ctx, u16 addr, u8 *buf, int len)
return;
ret = i2c_transfer(client->adapter, msg, 2);
- pr_debug("MHLR %02x:%02x %*ph, %d\n", msg[0].addr, addr & 0xff, len,
- buf, ret);
+ dev_dbg(dev, "read at %04x: %*ph, %d\n", addr, len, buf, ret);
if (ret != 2) {
- dev_err(dev, "I2C read of [%#06x] failed with code %d.\n",
- addr, ret);
+ dev_err(dev, "Read at %#06x of %d bytes failed with code %d.\n",
+ addr, len, ret);
ctx->error = ret < 0 ? ret : -EIO;
}
}
@@ -186,11 +185,10 @@ static void sii8620_write_buf(struct sii8620 *ctx, u16 addr, const u8 *buf,
msg.buf[0] = addr;
ret = i2c_transfer(client->adapter, &msg, 1);
- pr_debug("MHLW %02x:%02x %*ph, %d\n", msg.addr, addr & 0xff, len, buf,
- ret);
+ dev_dbg(dev, "write at %04x: %*ph, %d\n", addr, len, buf, ret);
if (ret != 1) {
- dev_err(dev, "I2C write [%#06x]=%*ph failed with code %d.\n",
+ dev_err(dev, "Write at %#06x of %*ph failed with code %d.\n",
addr, len, buf, ret);
ctx->error = ret ?: -EIO;
}