Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-4]: src/usr.sbin/iostat Pull up revision 1.18 (requested by mjl):



details:   https://anonhg.NetBSD.org/src/rev/d125c4c0a3a7
branches:  netbsd-1-4
changeset: 469717:d125c4c0a3a7
user:      he <he%NetBSD.org@localhost>
date:      Sat Nov 20 17:25:08 1999 +0000

description:
Pull up revision 1.18 (requested by mjl):
  Truncate device names at 7, not at 3 chars (so raid0 et al comes
  out ok).

diffstat:

 usr.sbin/iostat/iostat.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (34 lines):

diff -r b89f3642649f -r d125c4c0a3a7 usr.sbin/iostat/iostat.c
--- a/usr.sbin/iostat/iostat.c  Sat Nov 20 17:22:20 1999 +0000
+++ b/usr.sbin/iostat/iostat.c  Sat Nov 20 17:25:08 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: iostat.c,v 1.17 1998/08/27 03:17:49 lukem Exp $        */
+/*     $NetBSD: iostat.c,v 1.17.2.1 1999/11/20 17:25:08 he Exp $       */
 
 /*
  * Copyright (c) 1996 John M. Vinopal
@@ -75,7 +75,7 @@
 #if 0
 static char sccsid[] = "@(#)iostat.c   8.3 (Berkeley) 4/28/95";
 #else
-__RCSID("$NetBSD: iostat.c,v 1.17 1998/08/27 03:17:49 lukem Exp $");
+__RCSID("$NetBSD: iostat.c,v 1.17.2.1 1999/11/20 17:25:08 he Exp $");
 #endif
 #endif /* not lint */
 
@@ -239,13 +239,13 @@
                for (i = 0; i < dk_ndrive; i++)
                        if (cur.dk_select[i])
                                (void)printf(
-                                   "            %3.3s ", cur.dk_name[i]);
+                                   "        %7.7s ", cur.dk_name[i]);
 
        if (ISSET(todo, SHOW_STATS_2))
                for (i = 0; i < dk_ndrive; i++)
                        if (cur.dk_select[i])
                                (void)printf(
-                                   "           %3.3s ", cur.dk_name[i]);
+                                   "       %7.7s ", cur.dk_name[i]);
 
        if (ISSET(todo, SHOW_CPU))
                (void)printf("            cpu");



Home | Main Index | Thread Index | Old Index