summaryrefslogtreecommitdiffstats
path: root/plugins/check_ide_smart.c
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2024-10-31 13:35:42 (GMT)
committerLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2024-10-31 13:35:42 (GMT)
commitbb6e5dac7bccc1ff6b40fdcaf9dea4f11fe4b797 (patch)
tree62d98f2dfe2f5af80ec2d4b59199d63cb2b72977 /plugins/check_ide_smart.c
parent08d9932c137301aa2bdb6f6f30ff7cbeacaccbb3 (diff)
downloadmonitoring-plugins-bb6e5dac7bccc1ff6b40fdcaf9dea4f11fe4b797.tar.gz
check_ide_smart: clang-format again
Diffstat (limited to 'plugins/check_ide_smart.c')
-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 cfc7908..381dbd8 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 {