Support --examine --brief --verbose properly

Similar to -Esv, this combination should print out the
'devices=' line in the otherwise --breif output.
This commit is contained in:
Neil Brown 2006-10-23 15:51:26 +10:00
parent 3a43c80392
commit e843d5d779
1 changed files with 2 additions and 0 deletions

View File

@ -1148,6 +1148,8 @@ int main(int argc, char *argv[])
fprintf(stderr, Name ": No devices listed in %s\n", configfile?configfile:DefaultConfFile);
exit(1);
}
if (brief && verbose)
brief = 2;
rv = Examine(devlist, scan?(verbose>1?0:verbose+1):brief, scan, SparcAdjust, ss, homehost);
} else {
if (devlist == NULL) {