summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--atasmart.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/atasmart.c b/atasmart.c
index 543c211..bce315b 100644
--- a/atasmart.c
+++ b/atasmart.c
@@ -2304,9 +2304,10 @@ int sk_disk_dump(SkDisk *d) {
uint64_t value, power_on;
ret = sk_disk_smart_status(d, &good);
- printf("SMART Disk Health Good: %s\n",
- ret >= 0 ? yes_no(good) : strerror(errno));
-
+ printf("%sSMART Disk Health Good: %s%s\n",
+ ret >= 0 && !good ? HIGHLIGHT : "",
+ ret >= 0 ? yes_no(good) : strerror(errno),
+ ret >= 0 && !good ? ENDHIGHLIGHT : "");
if ((ret = sk_disk_smart_read_data(d)) < 0)
return ret;