Module Name: src
Committed By: soren
Date: Sat Aug 3 18:35:31 UTC 2013
Modified Files:
src/sbin/atactl: atactl.c
Log Message:
Don't use \t to align text columns.
Add a few attribute descriptions.
To generate a diff of this commit:
cvs rdiff -u -r1.69 -r1.70 src/sbin/atactl/atactl.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sbin/atactl/atactl.c
diff -u src/sbin/atactl/atactl.c:1.69 src/sbin/atactl/atactl.c:1.70
--- src/sbin/atactl/atactl.c:1.69 Fri Feb 8 03:58:36 2013
+++ src/sbin/atactl/atactl.c Sat Aug 3 18:35:31 2013
@@ -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 @@ static const struct bitinfo ata_cmd_set1
{ 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 @@ static const struct {
{ 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 @@ static const struct {
{ 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 @@ print_smart_status(void *vbuf, void *tbu
}
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 @@ print_smart_status(void *vbuf, void *tbu
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",