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:
parent
72e76600c3
commit
02e92d2ba5
1 changed files with 10 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue