From: <shiju.jose@huawei.com>
To: <linux-edac@vger.kernel.org>, <mchehab@kernel.org>
Cc: <linuxarm@huawei.com>, <tanxiaofei@huawei.com>,
<jonathan.cameron@huawei.com>, <prime.zeng@hisilicon.com>,
<luoshengwei@huawei.com>, <panjunchong@hisilicon.com>,
<fenglei47@h-partners.com>, <shiju.jose@huawei.com>
Subject: [PATCH v2 06/10] rasdaemon: ras-mc-ctl: Add printing usage if necessary parameters are not passed for the vendor-error options
Date: Mon, 3 Oct 2022 17:17:38 +0100 [thread overview]
Message-ID: <20221003161742.1697-7-shiju.jose@huawei.com> (raw)
In-Reply-To: <20221003161742.1697-1-shiju.jose@huawei.com>
From: Shiju Jose <shiju.jose@huawei.com>
Add printing usage if necessary parameters are not passed
for the vendor-errors options.
Signed-off-by: Shiju Jose <shiju.jose@huawei.com>
---
util/ras-mc-ctl.in | 2 ++
1 file changed, 2 insertions(+)
diff --git a/util/ras-mc-ctl.in b/util/ras-mc-ctl.in
index 8755b6f..959ea6b 100755
--- a/util/ras-mc-ctl.in
+++ b/util/ras-mc-ctl.in
@@ -1544,6 +1544,7 @@ sub vendor_errors_summary
if ($num_args ne 0) {
$platform_id = $ARGV[0];
} else {
+ usage(1);
return;
}
@@ -1651,6 +1652,7 @@ sub vendor_errors
if ($num_args ne 0) {
$platform_id = $ARGV[0];
} else {
+ usage(1);
return;
}
--
2.25.1
next prev parent reply other threads:[~2022-10-03 16:18 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-03 16:17 [PATCH v2 00/10] rasdaemon: Add cpu fault isolation support and improvements to the HiSilicon vendor specific code shiju.jose
2022-10-03 16:17 ` [PATCH v2 01/10] rasdaemon: Support cpu fault isolation for corrected errors shiju.jose
2022-10-03 16:17 ` [PATCH v2 02/10] rasdaemon: Support cpu fault isolation for recoverable errors shiju.jose
2022-10-03 16:17 ` [PATCH v2 03/10] rasdaemon: Modify recording Hisilicon common error data shiju.jose
2022-10-03 16:17 ` [PATCH v2 04/10] rasdaemon: ras-mc-ctl: Modify error statistics for HiSilicon KunPeng9xx common errors shiju.jose
2022-10-03 16:17 ` [PATCH v2 05/10] rasdaemon: ras-mc-ctl: Reformat error info of the HiSilicon Kunpeng920 shiju.jose
2022-10-03 16:17 ` shiju.jose [this message]
2022-10-03 16:17 ` [PATCH v2 07/10] rasdaemon: ras-mc-ctl: Add support to display the HiSilicon vendor errors for a specified module shiju.jose
2022-10-03 16:17 ` [PATCH v2 08/10] rasdaemon: ras-mc-ctl: Relocate reading and display Kunpeng920 errors to under Kunpeng9xx shiju.jose
2022-10-03 16:17 ` [PATCH v2 09/10] rasdaemon: ras-mc-ctl: Updated HiSilicon platform name shiju.jose
2022-10-03 16:17 ` [PATCH v2 10/10] rasdaemon: Fix for a memory out-of-bounds issue and optimized code to remove duplicate function shiju.jose
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221003161742.1697-7-shiju.jose@huawei.com \
--to=shiju.jose@huawei.com \
--cc=fenglei47@h-partners.com \
--cc=jonathan.cameron@huawei.com \
--cc=linux-edac@vger.kernel.org \
--cc=linuxarm@huawei.com \
--cc=luoshengwei@huawei.com \
--cc=mchehab@kernel.org \
--cc=panjunchong@hisilicon.com \
--cc=prime.zeng@hisilicon.com \
--cc=tanxiaofei@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).