Source-Changes-HG archive

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

[src/trunk]: src/sbin/atactl Don't use \t to align text columns.



details:   https://anonhg.NetBSD.org/src/rev/862d0d67e854
branches:  trunk
changeset: 789004:862d0d67e854
user:      soren <soren%NetBSD.org@localhost>
date:      Sat Aug 03 18:35:31 2013 +0000

description:
Don't use \t to align text columns.
Add a few attribute descriptions.

diffstat:

 sbin/atactl/atactl.c |  17 ++++++++++-------
 1 files changed, 10 insertions(+), 7 deletions(-)

diffs (66 lines):

diff -r 69b19cd8d2cf -r 862d0d67e854 sbin/atactl/atactl.c
--- a/sbin/atactl/atactl.c      Sat Aug 03 18:30:57 2013 +0000
+++ b/sbin/atactl/atactl.c      Sat Aug 03 18:35:31 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: atactl.c,v 1.69 2013/02/08 03:58:36 jakllsch Exp $     */
+/*     $NetBSD: atactl.c,v 1.70 2013/08/03 18:35:31 soren Exp $        */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
 #include <sys/cdefs.h>
 
 #ifndef lint
-__RCSID("$NetBSD: atactl.c,v 1.69 2013/02/08 03:58:36 jakllsch Exp $");
+__RCSID("$NetBSD: atactl.c,v 1.70 2013/08/03 18:35:31 soren Exp $");
 #endif
 
 
@@ -191,9 +191,9 @@
        { WDC_CMD1_HPA, "Host Protected Area feature set" },
        { WDC_CMD1_DVRST, "DEVICE RESET command" },
        { WDC_CMD1_SRV, "SERVICE interrupt" },
-       { WDC_CMD1_RLSE, "release interrupt" },
-       { WDC_CMD1_AHEAD, "look-ahead" },
-       { WDC_CMD1_CACHE, "write cache" },
+       { WDC_CMD1_RLSE, "Release interrupt" },
+       { WDC_CMD1_AHEAD, "Look-ahead" },
+       { WDC_CMD1_CACHE, "Write cache" },
        { WDC_CMD1_PKT, "PACKET command feature set" },
        { WDC_CMD1_PM, "Power Management feature set" },
        { WDC_CMD1_REMOV, "Removable Media feature set" },
@@ -273,6 +273,7 @@
        {  11,          "Calibration retry count", NULL },
        {  12,          "Device power cycle count", NULL },
        {  13,          "Soft read error rate", NULL },
+       { 184,          "End-to-end error", NULL },
        { 187,          "Reported uncorrect", NULL },
        { 189,          "High Fly Writes", NULL },
        { 190,          "Airflow Temperature",          device_smart_temp },
@@ -306,6 +307,8 @@
        { 228,          "Power-off retract count", NULL },
        { 230,          "GMR head amplitude", NULL },
        { 231,          "Temperature",                  device_smart_temp },
+       { 232,          "Available reserved space", NULL },
+       { 233,          "Media wearout indicator", NULL },
        { 240,          "Head flying hours", NULL },
        { 250,          "Read error retry rate", NULL },
        {   0,          "Unknown", NULL },
@@ -518,7 +521,7 @@
        }
 
        printf("id value thresh crit collect reliability description"
-           "\t\t\traw\n");
+           "                 raw\n");
        for (i = 0; i < 256; i++) {
                int thresh = 0;
 
@@ -546,7 +549,7 @@
 
                flags = le16toh(attr->flags);
 
-               printf("%3d %3d  %3d     %-3s %-7s %stive    %-24s\t",
+               printf("%3d %3d  %3d     %-3s %-7s %stive    %-27s ",
                    i, attr->value, thresh,
                    flags & WDSM_ATTR_ADVISORY ? "yes" : "no",
                    flags & WDSM_ATTR_COLLECTIVE ? "online" : "offline",



Home | Main Index | Thread Index | Old Index