summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@bootlin.com>2019-04-07 23:05:41 +0200
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2019-04-08 14:35:46 +0200
commite3a7691321aee378083b7bc2d7964e49bb940e9d (patch)
treec62b05a8deeeadf3657bf0805f68f4b537934767
parent69468320a94d55ec219eaf629d6774d753a9eb99 (diff)
downloadlinux-e3a7691321aee378083b7bc2d7964e49bb940e9d.tar.gz
linux-e3a7691321aee378083b7bc2d7964e49bb940e9d.tar.bz2
linux-e3a7691321aee378083b7bc2d7964e49bb940e9d.zip
rtc: ds1672: switch debug message to %ptR
Use %ptR to simplify debug message. Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
-rw-r--r--drivers/rtc/rtc-ds1672.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/rtc/rtc-ds1672.c b/drivers/rtc/rtc-ds1672.c
index 95c23b31c952..e9e8d02743ee 100644
--- a/drivers/rtc/rtc-ds1672.c
+++ b/drivers/rtc/rtc-ds1672.c
@@ -73,10 +73,7 @@ static int ds1672_read_time(struct device *dev, struct rtc_time *tm)
rtc_time64_to_tm(time, tm);
- dev_dbg(&client->dev, "%s: tm is secs=%d, mins=%d, hours=%d, "
- "mday=%d, mon=%d, year=%d, wday=%d\n",
- __func__, tm->tm_sec, tm->tm_min, tm->tm_hour,
- tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday);
+ dev_dbg(&client->dev, "%s: tm is %ptR\n", __func__, tm);
return 0;
}