Add -v in usage string. Add rcsid.
This commit is contained in:
parent
d518d2b60c
commit
373de31ed2
@ -23,7 +23,7 @@
|
||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" $Id: kldload.8,v 1.1 1997/05/07 18:19:21 dfr Exp $
|
||||
.\" $Id: kldload.8,v 1.2 1997/10/21 09:59:18 jmg Exp $
|
||||
.\"
|
||||
.Dd April 25, 1997
|
||||
.Dt KLDLOAD 8
|
||||
@ -34,14 +34,14 @@
|
||||
.Sh SYNOPSIS
|
||||
.Nm kldload
|
||||
.Op Fl v
|
||||
.Ar file
|
||||
.Ar filename
|
||||
.Sh DESCRIPTION
|
||||
The
|
||||
.Nm
|
||||
loads a file into the kernel using the kernel linker.
|
||||
.Pp
|
||||
The options are:
|
||||
.Bl -tag -width XXX -offset indent
|
||||
The following option is available:
|
||||
.Bl -tag -width indent
|
||||
.It Fl v
|
||||
Be more verbose.
|
||||
.El
|
||||
@ -54,7 +54,4 @@ The
|
||||
command first appeared in
|
||||
.Fx 3.0 .
|
||||
.Sh AUTHOR
|
||||
.Bl -tag
|
||||
Doug Rabson
|
||||
.Aq dfr@freebsd.org
|
||||
.El.
|
||||
.An Doug Rabson Aq dfr@freebsd.org
|
||||
|
@ -22,10 +22,13 @@
|
||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: kldload.c,v 1.2 1997/10/19 11:15:42 jmg Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
static const char rcsid[] =
|
||||
"$Id$";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <err.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
@ -36,7 +39,7 @@
|
||||
static void
|
||||
usage(void)
|
||||
{
|
||||
fprintf(stderr, "usage: kldload filename\n");
|
||||
fprintf(stderr, "usage: kldload [-v] filename\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
@ -63,7 +66,7 @@ main(int argc, char** argv)
|
||||
|
||||
fileid = kldload(argv[0]);
|
||||
if (fileid < 0)
|
||||
err(1, "Can't load %s", argv[0]);
|
||||
err(1, "can't load %s", argv[0]);
|
||||
else
|
||||
if (verbose)
|
||||
printf("Loaded %s, id=%d\n", argv[0], fileid);
|
||||
|
Loading…
Reference in New Issue
Block a user