svn commit: r315355 - stable/10/sbin/devfs

Ngie Cooper ngie at FreeBSD.org
Thu Mar 16 01:59:44 UTC 2017


Author: ngie
Date: Thu Mar 16 01:59:43 2017
New Revision: 315355
URL: https://svnweb.freebsd.org/changeset/base/315355

Log:
  MFC r314924:
  
  sbin/devfs: clarify usage
  
  - Note existence of -m option.
  - Note that -s applies to rule keyword, only, by adding usage text
    specifically for the `rule` and `ruleset` keywords.
  
  Don't go into any further detail in usage(..) -- it's best that one
  reads the manpage to get a better idea of how things work as there are
  a number of different option-specific keywords and arguments, as well
  as some rule grammar.

Modified:
  stable/10/sbin/devfs/devfs.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sbin/devfs/devfs.c
==============================================================================
--- stable/10/sbin/devfs/devfs.c	Thu Mar 16 01:59:41 2017	(r315354)
+++ stable/10/sbin/devfs/devfs.c	Thu Mar 16 01:59:43 2017	(r315355)
@@ -225,6 +225,8 @@ void
 usage(void)
 {
 
-	fprintf(stderr, "usage: devfs rule|ruleset arguments\n");
+	fprintf(stderr, "usage: %s\n%s\n",
+	    "\tdevfs [-m mount-point] [-s ruleset] rule ...",
+	    "\tdevfs [-m mount-point] ruleset ...");
 	exit(1);
 }


More information about the svn-src-all mailing list