Author: mav
Date: Sat Feb 14 08:52:09 2015
New Revision: 278747
URL: https://svnweb.freebsd.org/changeset/base/278747

Log:
  MFC r278362: Fix couple issues in ctlstat header printing.

Modified:
  stable/10/usr.bin/ctlstat/ctlstat.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/usr.bin/ctlstat/ctlstat.c
==============================================================================
--- stable/10/usr.bin/ctlstat/ctlstat.c Sat Feb 14 08:44:12 2015        
(r278746)
+++ stable/10/usr.bin/ctlstat/ctlstat.c Sat Feb 14 08:52:09 2015        
(r278747)
@@ -449,7 +449,7 @@ ctlstat_standard(struct ctlstat_context 
                                        (F_LUNVAL(ctx) != 0) ? "     " : "",
                                        (F_LUNVAL(ctx) != 0) ? "     " : "",
                                        (F_LUNVAL(ctx) != 0) ? "     " : "",
-                                       (F_CPU(ctx) == 0)   ? "    CPU" : "");
+                                       (F_CPU(ctx))   ? "    CPU" : "");
                                hdr_devs = 3;
                        } else {
                                if (F_CPU(ctx))
@@ -468,8 +468,9 @@ ctlstat_standard(struct ctlstat_context 
 
                                        if (bit_test(ctx->lun_mask, lun) == 0)
                                                continue;
-                                       fprintf(stdout, "%15.6s%d ",
-                                               "lun", lun);
+                                       fprintf(stdout, "%15.6s%d %s",
+                                           "lun", lun,
+                                           (F_LUNVAL(ctx) != 0) ? "     " : 
"");
                                        hdr_devs++;
                                }
                                fprintf(stdout, "\n");
_______________________________________________
svn-src-stable-10@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-stable-10
To unsubscribe, send any mail to "svn-src-stable-10-unsubscr...@freebsd.org"

Reply via email to