w: eliminate inappropriate cmdline padding with spaces
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>
This commit is contained in:
2
w.c
2
w.c
@@ -488,7 +488,7 @@ static void showinfo(
|
||||
else
|
||||
print_time_ival7(idletime(tty), 0, stdout);
|
||||
}
|
||||
printf(" %-*.*s\n", maxcmd, maxcmd, cmdline);
|
||||
printf(" %.*s\n", maxcmd, cmdline);
|
||||
}
|
||||
|
||||
static void __attribute__ ((__noreturn__))
|
||||
|
Reference in New Issue
Block a user