Send 'camcontrol help' usage output to stdout instead of stderr, so it
can be viewed more easily with a pager. Regular (i.e. short) usage output is still sent to stderr. PR: bin/12358 Submitted by: Christian Weisgerber <naddy@mips.rhein-neckar.de>
This commit is contained in:
@@ -2963,7 +2963,7 @@ scsiformat(struct cam_device *device, int argc, char **argv,
|
||||
void
|
||||
usage(int verbose)
|
||||
{
|
||||
fprintf(stderr,
|
||||
fprintf(verbose ? stdout : stderr,
|
||||
"usage: camcontrol <command> [device id][generic args][command args]\n"
|
||||
" camcontrol devlist [-v]\n"
|
||||
" camcontrol periphlist [dev_id][-n dev_name] [-u unit]\n"
|
||||
@@ -2989,7 +2989,7 @@ usage(int verbose)
|
||||
" camcontrol help\n");
|
||||
if (!verbose)
|
||||
return;
|
||||
fprintf(stderr,
|
||||
fprintf(stdout,
|
||||
"Specify one of the following options:\n"
|
||||
"devlist list all CAM devices\n"
|
||||
"periphlist list all CAM peripheral drivers attached to a device\n"
|
||||
|
||||
Reference in New Issue
Block a user