diff options
author | ken <ken@FreeBSD.org> | 1999-05-10 23:30:04 +0000 |
---|---|---|
committer | ken <ken@FreeBSD.org> | 1999-05-10 23:30:04 +0000 |
commit | 5553fc066610f4bcda2854fa7607e25a18ec7578 (patch) | |
tree | 1c5de8a5424cc55605a438a67428e5d7d77b14e3 /sbin/camcontrol/modeedit.c | |
parent | d2071f7fb823fca6d3f4948da0847b45ed5a11b2 (diff) | |
download | FreeBSD-src-5553fc066610f4bcda2854fa7607e25a18ec7578.zip FreeBSD-src-5553fc066610f4bcda2854fa7607e25a18ec7578.tar.gz |
Add a new device specification syntax to camcontrol. It is now possible to
do things like:
camcontrol tur da5
or
camcontrol tur 1:2:0
or
camcontrol tur 1:2
These changes are fully backwards compatible with the original device
specification syntax (-n dev -u unit), so it is possible to use either
method to specify a device now.
The device specification changes do not affect the rescan, reset or debug
commands, since by design, those commands work on a bus or bus:target:lun
basis only.
Also, shorten the default usage statement so that it fits in a 24 column
terminal. The full usage statement is still available by using the "help"
"-h" or "-?" arguments to camcontrol.
Submitted by: Joerg Wunsch <joerg_wunsch@interface-business.de>
Diffstat (limited to 'sbin/camcontrol/modeedit.c')
-rw-r--r-- | sbin/camcontrol/modeedit.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/camcontrol/modeedit.c b/sbin/camcontrol/modeedit.c index 131624f..6df2392 100644 --- a/sbin/camcontrol/modeedit.c +++ b/sbin/camcontrol/modeedit.c @@ -45,7 +45,7 @@ */ #ifndef lint static const char rcsid[] = - "$Id$"; + "$Id: modeedit.c,v 1.1 1998/09/15 06:43:02 gibbs Exp $"; #endif /* not lint */ #include <ctype.h> @@ -76,7 +76,7 @@ iget(void *hook, char *name) if (h->got >= h->argc) { fprintf(stderr, "Expecting an integer argument.\n"); - usage(); + usage(0); exit(1); } arg = strtol(h->argv[h->got], 0, 0); @@ -99,7 +99,7 @@ cget(void *hook, char *name) if (h->got >= h->argc) { fprintf(stderr, "Expecting a character pointer argument.\n"); - usage(); + usage(0); exit(1); } arg = h->argv[h->got]; |