Fix ower/pm/pm_procfs.c:46:15: error: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'time_t' {aka 'long long int'}
****************************************************************************/
#define STHDR "DOMAIN%d WAKE SLEEP TOTAL\n"
+#define WAHDR "DOMAIN%d STATE COUNT TIME\n"
+
+#ifdef CONFIG_SYSTEM_TIME64
+# define STFMT "%-8s %8" PRIu64 "s %02" PRIu64 "%% %8" PRIu64 "s %02" \
+ PRIu64 "%% %8" PRIu64 "s %02" PRIu64 "%%\n"
+# define WAFMT "%-12s %-10s %4" PRIu32 " %8" PRIu64 "s\n"
+#else
# define STFMT "%-8s %8" PRIu32 "s %02" PRIu32 "%% %8" PRIu32 "s %02" \
PRIu32 "%% %8" PRIu32 "s %02" PRIu32 "%%\n"
-
-#define WAHDR "DOMAIN%d STATE COUNT TIME\n"
# define WAFMT "%-12s %-10s %4" PRIu32 " %8" PRIu32 "s\n"
+#endif
/* Determines the size of an intermediate buffer that must be large enough
* to handle the longest line generated by this logic (plus a couple of
