summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/check_ide_smart.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/check_ide_smart.c b/plugins/check_ide_smart.c
index cfc7908e..381dbd80 100644
--- a/plugins/check_ide_smart.c
+++ b/plugins/check_ide_smart.c
@@ -118,15 +118,16 @@ struct {
118 char *text; 118 char *text;
119} 119}
120 120
121static offline_status_text[] = {{0x00, "NeverStarted"}, {0x02, "Completed"}, {0x04, "Suspended"}, {0x05, "Aborted"}, {0x06, "Failed"}, {0, 0}}; 121static offline_status_text[] = {{0x00, "NeverStarted"}, {0x02, "Completed"}, {0x04, "Suspended"},
122 {0x05, "Aborted"}, {0x06, "Failed"}, {0, 0}};
122 123
123static struct { 124static struct {
124 __u8 value; 125 __u8 value;
125 char *text; 126 char *text;
126} smart_command[] = {{SMART_ENABLE, "SMART_ENABLE"}, 127} smart_command[] = {{SMART_ENABLE, "SMART_ENABLE"},
127 {SMART_DISABLE, "SMART_DISABLE"}, 128 {SMART_DISABLE, "SMART_DISABLE"},
128 {SMART_IMMEDIATE_OFFLINE, "SMART_IMMEDIATE_OFFLINE"}, 129 {SMART_IMMEDIATE_OFFLINE, "SMART_IMMEDIATE_OFFLINE"},
129 {SMART_AUTO_OFFLINE, "SMART_AUTO_OFFLINE"}}; 130 {SMART_AUTO_OFFLINE, "SMART_AUTO_OFFLINE"}};
130 131
131/* Index to smart_command table, keep in order */ 132/* Index to smart_command table, keep in order */
132enum SmartCommand { 133enum SmartCommand {