From: Matthew Dillon Date: Wed, 31 Aug 2016 05:17:28 +0000 (-0700) Subject: ps - Adjust STATUS formatting X-Git-Tag: v4.8.0rc~1105 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/779c5f445a56530656296e18822171f55bf8ec8b ps - Adjust STATUS formatting * Remove the leading space for (%s) command display. The leading space was causing indented output via -R to be incorrectly indented. * Remove the 'L' STATUS flag, it hasn't been meaningful for a long time. The status is more likely to fit in its 6-char slot, which we need now that many systems have >= 10 cpus. --- diff --git a/bin/ps/fmt.c b/bin/ps/fmt.c index 9b1419ea8e..ba65178670 100644 --- a/bin/ps/fmt.c +++ b/bin/ps/fmt.c @@ -113,7 +113,7 @@ fmt_argv(char **argv, char *cmd, int maxlen) if ((cp = malloc(len)) == NULL) return (NULL); if (ap == NULL) - sprintf(cp, " (%.*s)", maxlen, cmd); + sprintf(cp, "(%.*s)", maxlen, cmd); else if (strncmp(cmdpart(argv[0]), cmd, maxlen) != 0) sprintf(cp, "%s (%.*s)", ap, maxlen, cmd); else diff --git a/bin/ps/print.c b/bin/ps/print.c index 035c4b7823..8f6e87b5fd 100644 --- a/bin/ps/print.c +++ b/bin/ps/print.c @@ -281,8 +281,11 @@ state(const KINFO *k, const struct varent *vent) *cp++ = 'E'; if (flag & P_PPWAIT) *cp++ = 'V'; +#if 0 + /* removed, no longer interesting */ if ((flag & P_SYSTEM) || KI_PROC(k, lock) > 0) *cp++ = 'L'; +#endif if (flag & P_JAILED) *cp++ = 'J'; if (KI_PROC(k, auxflags) & KI_SLEADER) diff --git a/bin/ps/ps.1 b/bin/ps/ps.1 index 16c5ed0b68..44677dface 100644 --- a/bin/ps/ps.1 +++ b/bin/ps/ps.1 @@ -281,9 +281,6 @@ for example, in a garbage collect). .It Li E The process is trying to exit. -.It Li L -The process has pages locked in core (for example, for raw -.Tn I/O ) . .It Li N The process has reduced CPU scheduling priority (see .Xr setpriority 2 ) .