Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

m68k/mac: Switch to use %ptR

Use %ptR instead of open coded variant to print content of
struct rtc_time in human readable format.

Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: linux-m68k <linux-m68k@lists.linux-m68k.org>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>

authored by

Andy Shevchenko and committed by
Alexandre Belloni
90625444 804cfcb9

+2 -6
+2 -6
arch/m68k/mac/misc.c
··· 605 605 unmktime(now, 0, 606 606 &t->tm_year, &t->tm_mon, &t->tm_mday, 607 607 &t->tm_hour, &t->tm_min, &t->tm_sec); 608 - pr_debug("%s: read %04d-%02d-%-2d %02d:%02d:%02d\n", 609 - __func__, t->tm_year + 1900, t->tm_mon + 1, t->tm_mday, 610 - t->tm_hour, t->tm_min, t->tm_sec); 608 + pr_debug("%s: read %ptR\n", __func__, t); 611 609 } else { /* write */ 612 - pr_debug("%s: tried to write %04d-%02d-%-2d %02d:%02d:%02d\n", 613 - __func__, t->tm_year + 1900, t->tm_mon + 1, t->tm_mday, 614 - t->tm_hour, t->tm_min, t->tm_sec); 610 + pr_debug("%s: tried to write %ptR\n", __func__, t); 615 611 616 612 switch (macintosh_config->adb_type) { 617 613 case MAC_ADB_IOP: