diff options
author | Elliott Hughes <enh@google.com> | 2015-03-09 21:10:10 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2015-03-09 21:10:10 -0700 |
commit | 8ac94d3a545c65499b6492ec2c76d4757535fcfe (patch) | |
tree | 7d141d4cfe074aa64f4fcbbdde144710055ead4a /toolbox/ps.c | |
parent | 9cce837d025d05a07a3b91cf23337a7b688c3eb9 (diff) | |
download | core-8ac94d3a545c65499b6492ec2c76d4757535fcfe.tar.gz core-8ac94d3a545c65499b6492ec2c76d4757535fcfe.tar.bz2 core-8ac94d3a545c65499b6492ec2c76d4757535fcfe.zip |
Fix LP32 build.
Change-Id: I66e084330e7a32eac639d06187e780ffa0ad7b14
Diffstat (limited to 'toolbox/ps.c')
-rw-r--r-- | toolbox/ps.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/toolbox/ps.c b/toolbox/ps.c index 18129ff55..cf3f05a82 100644 --- a/toolbox/ps.c +++ b/toolbox/ps.c @@ -1,6 +1,7 @@ #include <ctype.h> #include <dirent.h> #include <fcntl.h> +#include <inttypes.h> #include <pwd.h> #include <stdio.h> #include <stdlib.h> @@ -192,7 +193,7 @@ static int ps_line(int pid, int tid, char *namefilter) wchan[wchan_len = 0] = '\0'; } close(fd); - printf(" %10.*s %0*lx %s ", (int) wchan_len, wchan, (int) PC_WIDTH, eip, state); + printf(" %10.*s %0*" PRIxPTR " %s ", (int) wchan_len, wchan, (int) PC_WIDTH, eip, state); if (display_flags & SHOW_ABI) { print_exe_abi(pid); } |