Subject: bin/8387: Error in iostat output
To: None <gnats-bugs@gnats.netbsd.org>
From: Mattias Pantzare <pantzer@ludd.luth.se>
List: netbsd-bugs
Date: 09/12/1999 13:35:48
>Number:         8387
>Category:       bin
>Synopsis:       iostat prints sd16 as sd1
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Sep 12 13:35:00 1999
>Last-Modified:
>Originator:     
>Organization:
	
>Release:        1.4.1
>Environment:
	
System: NetBSD queeg 1.4.1 NetBSD 1.4.1 (QUEEG) #0: Sat Aug 21 13:17:06 CEST 1999 ragge@queeg:/usr/src/sys/arch/i386/compile/QUEEG i386


>Description:
	
iostat sd16 1 prints sd1 in the header.
>How-To-Repeat:
	
iostat sd16 1
>Fix:
	
*** iostat.c.orginal    Sun Sep 12 21:59:58 1999
--- iostat.c    Sun Sep 12 22:26:28 1999
***************
*** 239,251 ****
                for (i = 0; i < dk_ndrive; i++)
                        if (cur.dk_select[i])
                                (void)printf(
!                                   "            %3.3s ", 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]);
  
        if (ISSET(todo, SHOW_CPU))
                (void)printf("            cpu");
--- 239,251 ----
                for (i = 0; i < dk_ndrive; i++)
                        if (cur.dk_select[i])
                                (void)printf(
!                                   "          %5.5s ", cur.dk_name[i]);
  
        if (ISSET(todo, SHOW_STATS_2))
                for (i = 0; i < dk_ndrive; i++)
                        if (cur.dk_select[i])
                                (void)printf(
!                                   "         %5.5s ", cur.dk_name[i]);
  
        if (ISSET(todo, SHOW_CPU))
                (void)printf("            cpu");

>Audit-Trail:
>Unformatted: