diff options
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ash.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/shell/ash.c b/shell/ash.c index 98da20f8a..f211df83a 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -5070,7 +5070,7 @@ showjob(struct job *jp, int mode) | |||
5070 | 5070 | ||
5071 | if (mode & SHOW_ONLY_PGID) { /* jobs -p */ | 5071 | if (mode & SHOW_ONLY_PGID) { /* jobs -p */ |
5072 | /* just output process (group) id of pipeline */ | 5072 | /* just output process (group) id of pipeline */ |
5073 | fprintf(out, "%d\n", ps->ps_pid); | 5073 | fprintf(out, "%"PID_FMT"d\n", ps->ps_pid); |
5074 | return; | 5074 | return; |
5075 | } | 5075 | } |
5076 | 5076 | ||
@@ -5083,7 +5083,7 @@ showjob(struct job *jp, int mode) | |||
5083 | s[col - 3] = '-'; | 5083 | s[col - 3] = '-'; |
5084 | 5084 | ||
5085 | if (mode & SHOW_PIDS) | 5085 | if (mode & SHOW_PIDS) |
5086 | col += fmtstr(s + col, 16, "%d ", ps->ps_pid); | 5086 | col += fmtstr(s + col, 16, "%"PID_FMT"d ", ps->ps_pid); |
5087 | 5087 | ||
5088 | psend = ps + jp->nprocs; | 5088 | psend = ps + jp->nprocs; |
5089 | 5089 | ||
@@ -5114,7 +5114,7 @@ showjob(struct job *jp, int mode) | |||
5114 | s[0] = '\0'; | 5114 | s[0] = '\0'; |
5115 | col = 33; | 5115 | col = 33; |
5116 | if (mode & SHOW_PIDS) | 5116 | if (mode & SHOW_PIDS) |
5117 | col = fmtstr(s, 48, "\n%*c%d ", indent_col, ' ', ps->ps_pid) - 1; | 5117 | col = fmtstr(s, 48, "\n%*c%"PID_FMT"d ", indent_col, ' ', ps->ps_pid) - 1; |
5118 | start: | 5118 | start: |
5119 | #if ENABLE_PLATFORM_POSIX || JOBS_WIN32 | 5119 | #if ENABLE_PLATFORM_POSIX || JOBS_WIN32 |
5120 | fprintf(out, "%s%*c%s%s", | 5120 | fprintf(out, "%s%*c%s%s", |