Skip to content

Commit

Permalink
sbin/hammer: Add no hammer found message if not mounted
Browse files Browse the repository at this point in the history
The local variable 'first' being non-zero after the loop means
none of them were hammer.
  • Loading branch information
kusumi committed Apr 18, 2016
1 parent fe3b711 commit c1ac632
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sbin/hammer/cmd_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ hammer_cmd_info(char **av, int ac)
show_info(path);
}
}
if (first)
fprintf(stdout, "No mounted HAMMER filesystems found\n");
} else {
fprintf(stdout, "No mounted filesystems found\n");
}
Expand Down

0 comments on commit c1ac632

Please sign in to comment.