diff options
author | peter <peter@FreeBSD.org> | 1995-09-04 01:22:54 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1995-09-04 01:22:54 +0000 |
commit | 136c23f685c96f47a2db6da80d7a1488c1c14582 (patch) | |
tree | 2d8089156b3f1ca1485ed01ae1e0431a03d397c0 /bin/ps/print.c | |
parent | 791992935e57c6317ac27431773cdbf226a378de (diff) | |
download | FreeBSD-src-136c23f685c96f47a2db6da80d7a1488c1c14582.zip FreeBSD-src-136c23f685c96f47a2db6da80d7a1488c1c14582.tar.gz |
Increase the tty column width from 2 to 3 characters.
This gives us more room to breath with tty names, especially with drivers
that support large numbers of ports.. eg: specialix and digiboard.
This does not actually change the current tty names, it just allows room
for reporting more characters if the drivers use them.
Diffstat (limited to 'bin/ps/print.c')
-rw-r--r-- | bin/ps/print.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ps/print.c b/bin/ps/print.c index cf042d7..56b98f7 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.7 1995/05/30 00:07:04 rgrimes Exp $ + * $Id: print.c,v 1.8 1995/08/07 19:17:39 wollman Exp $ */ #ifndef lint @@ -327,7 +327,7 @@ tname(k, ve) if (strncmp(ttname, "tty", 3) == 0 || strncmp(ttname, "cua", 3) == 0) ttname += 3; - (void)printf("%*.*s%c", v->width-1, v->width-1, ttname, + (void)printf("%-*.*s%c", v->width-1, v->width-1, ttname, KI_EPROC(k)->e_flag & EPROC_CTTY ? ' ' : '-'); } } |