Patchwork [2/2] rtc: rtc-fm3130: use dev_dbg() instead of pr_debug()

login
register
mail settings
Submitter Jingoo Han
Date March 14, 2013, 8:09 a.m.
Message ID <008301ce208b$3d996890$b8cc39b0$%han@samsung.com>
Download mbox | patch
Permalink /patch/227458/
State New
Headers show

Comments

Jingoo Han - March 14, 2013, 8:09 a.m.
dev_dbg() is more preferred than pr_debug().

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
 drivers/rtc/rtc-fm3130.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/drivers/rtc/rtc-fm3130.c b/drivers/rtc/rtc-fm3130.c
index bff3cdc..4d4ad3f 100644
--- a/drivers/rtc/rtc-fm3130.c
+++ b/drivers/rtc/rtc-fm3130.c
@@ -395,7 +395,7 @@  static int fm3130_probe(struct i2c_client *client,
 
 	tmp = i2c_transfer(adapter, fm3130->msg, 4);
 	if (tmp != 4) {
-		pr_debug("read error %d\n", tmp);
+		dev_dbg(&client->dev, "read error %d\n", tmp);
 		err = -EIO;
 		goto exit_free;
 	}