37 lines
999 B
Diff
37 lines
999 B
Diff
|
|
From 623e85c07ab21ccc89ffe2bb444eb000a2664a9d Mon Sep 17 00:00:00 2001
|
||
|
|
From: Shiju Jose <shiju.jose@huawei.com>
|
||
|
|
Date: Sat, 5 Mar 2022 17:01:35 +0000
|
||
|
|
Subject: [PATCH 4/6] rasdaemon: ras-mc-ctl: Add printing usage if necessary
|
||
|
|
parameters are not passed for the HiSilicon vendor-errors options
|
||
|
|
|
||
|
|
Add printing usage if necessary parameters are not passed for the HiSilicon vendor-errors options of the ras-mc-ctl.
|
||
|
|
|
||
|
|
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 eeaf885..0e32cb1 100755
|
||
|
|
--- a/util/ras-mc-ctl.in
|
||
|
|
+++ b/util/ras-mc-ctl.in
|
||
|
|
@@ -1542,6 +1542,7 @@ sub vendor_errors_summary
|
||
|
|
if ($num_args ne 0) {
|
||
|
|
$platform_id = $ARGV[0];
|
||
|
|
} else {
|
||
|
|
+ usage(1);
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
|
||
|
|
@@ -1649,6 +1650,7 @@ sub vendor_errors
|
||
|
|
if ($num_args ne 0) {
|
||
|
|
$platform_id = $ARGV[0];
|
||
|
|
} else {
|
||
|
|
+ usage(1);
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
|
||
|
|
--
|
||
|
|
2.25.1
|
||
|
|
|