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 #include #include +#include #include #include #include @@ -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); }