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'}

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-12-23 17:31:04 +08:00 committed by Alan Carvalho de Assis
parent 72e76600c3
commit 02e92d2ba5

View file

@ -43,11 +43,17 @@
****************************************************************************/
#define STHDR "DOMAIN%d WAKE SLEEP TOTAL\n"
#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"
#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 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