]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
rtc: ds1672: switch debug message to %ptR
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Sun, 7 Apr 2019 21:05:41 +0000 (23:05 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 8 Apr 2019 12:35:46 +0000 (14:35 +0200)
Use %ptR to simplify debug message.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-ds1672.c

index 95c23b31c952997787970797764f70bfddfc8cb6..e9e8d02743ee516a033ab18b5e39d045669f74b7 100644 (file)
@@ -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;
 }