summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-04-14 22:23:55 +0200
committerLennart Poettering <lennart@poettering.net>2009-04-14 22:23:55 +0200
commit2346ef47503dfccf4978a62893a9d58e37937f88 (patch)
tree50f62f26cc9bedbf82cd34634ef8ed6fa35cf3cb
parentfd56d21c7477f026bb1c9d353c461d08e22ba024 (diff)
when dumping status print message when SMART is not supported
-rw-r--r--atasmart.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/atasmart.c b/atasmart.c
index da6138b..e24c910 100644
--- a/atasmart.c
+++ b/atasmart.c
@@ -2046,7 +2046,8 @@ int sk_disk_dump(SkDisk *d) {
if ((ret = sk_disk_smart_parse_attributes(d, disk_dump_attributes, NULL)) < 0)
return ret;
- }
+ } else
+ printf("ATA SMART not supported.\n");
return 0;
}