summaryrefslogtreecommitdiff
path: root/drivers/i2c
diff options
context:
space:
mode:
authorKerwin Wan <kerwinw@nvidia.com>2013-12-19 03:46:42 +0800
committerTom Cherry <tcherry@nvidia.com>2014-01-21 20:27:33 -0800
commit80467a2220bfe295bc37f18be977f4320a968266 (patch)
treee69535e045cd1ad013cb529c989532485e8aac5b /drivers/i2c
parent70d8868ba806440e24fa898ed26dd6abdde74750 (diff)
i2c: tegra: fix building error
Change-Id: Ie908c05466429e4b84797cc2a5e10138153daf0f Signed-off-by: Kerwin Wan <kerwinw@nvidia.com> Reviewed-on: http://git-master/r/347146 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Alexander Van Brunt <avanbrunt@nvidia.com> Tested-by: Alexander Van Brunt <avanbrunt@nvidia.com>
Diffstat (limited to 'drivers/i2c')
-rw-r--r--drivers/i2c/busses/i2c-tegra.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/i2c/busses/i2c-tegra.c b/drivers/i2c/busses/i2c-tegra.c
index b80e2a7e465b..40dc68fcb678 100644
--- a/drivers/i2c/busses/i2c-tegra.c
+++ b/drivers/i2c/busses/i2c-tegra.c
@@ -528,7 +528,7 @@ static int tegra_i2c_fill_tx_fifo(struct tegra_i2c_dev *i2c_dev)
if (tx_fifo_avail > 0 && buf_remaining > 0) {
if (buf_remaining > 3) {
dev_err(i2c_dev->dev,
- "Remaining buffer more than 3 %d\n",
+ "Remaining buffer more than 3 %zd\n",
buf_remaining);
BUG();
}
@@ -1069,7 +1069,7 @@ static int tegra_i2c_xfer_msg(struct tegra_i2c_dev *i2c_dev,
!(next_msg->flags & I2C_M_RD));
}
- dev_err(i2c_dev->dev, "buf_remaining - %d\n",
+ dev_err(i2c_dev->dev, "buf_remaining - %zd\n",
i2c_dev->msg_buf_remaining);
}