summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bcacheadm.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/bcacheadm.c b/bcacheadm.c
index 9cbf3462..837219ed 100644
--- a/bcacheadm.c
+++ b/bcacheadm.c
@@ -590,10 +590,12 @@ int bcache_status(NihCommand *command, char *const *args)
free(sb);
}
- if(!seq_sb)
+ if(!seq_sb) {
printf("Unable to find a superblock\n");
- else
+ return -1;
+ } else {
printf("%-50s%-15s%-4s\n", "uuid", "state", "tier");
+ }
for (i = 0; i < seq_sb->nr_in_set; i++) {
char uuid_str[40];