summaryrefslogtreecommitdiff
path: root/bin/ps
diff options
context:
space:
mode:
authorDavid Greenman <dg@FreeBSD.org>1995-10-05 07:46:37 +0000
committerDavid Greenman <dg@FreeBSD.org>1995-10-05 07:46:37 +0000
commite9a68bf85c62f09baf9f968431c82da73ff53567 (patch)
tree64cd57f89175c63f8f0cf92ea438b57b69302fe8 /bin/ps
parent197829329f54611f5af3e90314270579a3b6132e (diff)
Notes
Diffstat (limited to 'bin/ps')
-rw-r--r--bin/ps/keyword.c6
-rw-r--r--bin/ps/print.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/bin/ps/keyword.c b/bin/ps/keyword.c
index 1c79e0762aa4..d2423181b81d 100644
--- a/bin/ps/keyword.c
+++ b/bin/ps/keyword.c
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: keyword.c,v 1.4 1994/10/02 08:19:10 davidg Exp $
+ * $Id: keyword.c,v 1.7 1995/09/26 17:48:58 peter Exp $
*/
#ifndef lint
@@ -161,7 +161,7 @@ VAR var[] = {
{"tpgid", "TPGID", NULL, 0, evar, 4, EOFF(e_tpgid), ULONG, PIDFMT},
{"tsess", "TSESS", NULL, 0, evar, 6, EOFF(e_tsess), KPTR, "x"},
{"tsiz", "TSIZ", NULL, 0, tsize, 4},
- {"tt", "TT", NULL, LJUST, tname, 3},
+ {"tt", "TT ", NULL, 0, tname, 4},
{"tty", "TTY", NULL, LJUST, longtname, 8},
{"ucomm", "UCOMM", NULL, LJUST, ucomm, MAXCOMLEN},
{"uid", "UID", NULL, 0, evar, UIDLEN, EOFF(e_ucred.cr_uid),
@@ -248,7 +248,7 @@ VAR var[] = {
{"trs", "TRS", NULL, 0, trss, 3},
{"tsess", "TSESS", NULL, 0, evar, 6, EOFF(e_tsess), KPTR, "x"},
{"tsiz", "TSIZ", NULL, 0, tsize, 4},
- {"tt", "TT", NULL, LJUST, tname, 3},
+ {"tt", "TT", NULL, LJUST, tname, 4},
{"tty", "TTY", NULL, LJUST, longtname, 8},
{"ucomm", "UCOMM", NULL, LJUST, ucomm, MAXCOMLEN},
{"uid", "UID", NULL, 0, pvar, UIDLEN, POFF(p_uid),USHORT, UIDFMT},
diff --git a/bin/ps/print.c b/bin/ps/print.c
index 7b6432e77fca..01f815abfcf3 100644
--- a/bin/ps/print.c
+++ b/bin/ps/print.c
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: print.c,v 1.8 1995/08/07 19:17:39 wollman Exp $
+ * $Id: print.c,v 1.10 1995/09/26 17:48:59 peter Exp $
*/
#ifndef lint
@@ -322,7 +322,7 @@ tname(k, ve)
v = ve->var;
dev = KI_EPROC(k)->e_tdev;
if (dev == NODEV || (ttname = devname(dev, S_IFCHR)) == NULL)
- (void)printf("%-*s", v->width, "??");
+ (void)printf("%*s ", v->width-1, "??");
else {
if (strncmp(ttname, "tty", 3) == 0 ||
strncmp(ttname, "cua", 3) == 0)