mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-29 21:52:45 +00:00
Add -v in usage string. Add rcsid.
This commit is contained in:
parent
9c97abd8c3
commit
49fea209d4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=32269
@ -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