lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Fri, 12 Aug 2022 15:21:15 +0800 (CST)
From:   jiangheng <15720603159@....com>
To:     netdev@...r.kernel.org
Subject: [PATCH iproute2] genl: modify the command output message of genl -h

From f4709a324870822066b449bab89980dba8c8af79 Mon Sep 17 00:00:00 2001
From: jinag <jinag12138@...il.com>
Date: Thu, 14 Oct 2021 15:13:03 +0800
Subject: [PATCH] genl: modify the command output of genl -h

after the modification, the command output is the same as that of man 8 genl and more readable.
---
 genl/genl.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/genl/genl.c b/genl/genl.c
index 6557e6bc..977e9db7 100644
--- a/genl/genl.c
+++ b/genl/genl.c
@@ -99,9 +99,11 @@ static void usage(void) __attribute__((noreturn));
 static void usage(void)
 {
        fprintf(stderr,
-               "Usage: genl [ OPTIONS ] OBJECT [help] }\n"
-               "where  OBJECT := { ctrl etc }\n"
-               "       OPTIONS := { -s[tatistics] | -d[etails] | -r[aw] | -V[ersion] | -h[elp] }\n");
+               "Usage: genl [ OPTIONS ] OBJECT [help]\n"
+               "where  OBJECT := { ctrl CTRL_OPTS }\n"
+               "       OPTIONS := { -s[tatistics] | -d[etails] | -r[aw] | -V[ersion] | -h[elp] }\n"
+               "       CTRL_OPTS := { help | list | monitor | get PARMS }\n"
+               "       PARMS := { name NAME | id ID }\n");
        exit(-1);
 }

--
2.23.0

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ