[nfs-utils PATCH 1/2] nfsdctl: fix up the help text in version_usage()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The help text in version_usage() has examples with a 'v' character in
the version string, but the format string in the sscanf() call in
version_func() doesn't contain a 'v' character.

Signed-off-by: Scott Mayhew <smayhew@xxxxxxxxxx>
---
 utils/nfsdctl/nfsdctl.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/utils/nfsdctl/nfsdctl.c b/utils/nfsdctl/nfsdctl.c
index f7c27632..ef917ff0 100644
--- a/utils/nfsdctl/nfsdctl.c
+++ b/utils/nfsdctl/nfsdctl.c
@@ -764,9 +764,9 @@ static void version_usage(void)
 	printf("    Display currently enabled and disabled versions:\n");
 	printf("        version\n");
 	printf("    Disable NFSv4.0:\n");
-	printf("        version -v4.0\n");
+	printf("        version -4.0\n");
 	printf("    Enable v4.1, v4.2, disable v2, v3 and v4.0:\n");
-	printf("        version -2 -3 -v4.0 +4.1 +v4.2\n");
+	printf("        version -2 -3 -4.0 +4.1 +4.2\n");
 }
 
 static int version_func(struct nl_sock *sock, int argc, char ** argv)
-- 
2.46.2





[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux