This commit is an outgrowth of the research into a bug
involving the recently added enum 'PROCPS_PIDS_extra'.
The WHAT portion of output is being padded with spaces
since the printf field width format specifier was used
in combination with a precision specifier. This commit
reduces the format string to just that precision part.
Signed-off-by: Jim Warner <james.warner@comcast.net>
else
print_time_ival7(idletime(tty), 0, stdout);
}
- printf(" %-*.*s\n", maxcmd, maxcmd, cmdline);
+ printf(" %.*s\n", maxcmd, cmdline);
}
static void __attribute__ ((__noreturn__))