cc:sashal@kernel.org
Make thing simple to show the help/usage info, when no argument given.
Signed-off-by: Bhaskar Chowdhury <unixbhaskar@gmail.com>
---
scripts/decode_stacktrace.sh | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/scripts/decode_stacktrace.sh b/scripts/decode_stacktrace.sh
index 39d60d477bf3..fa084f128802 100755
--- a/scripts/decode_stacktrace.sh
+++ b/scripts/decode_stacktrace.sh
@@ -7,7 +7,6 @@ usage() {
echo "Usage:"
echo " $0 [-R] -r <release>"
echo " $0 [-R] [<vmlinux> [<base_path>|auto [<modules_path>]]]"
- echo " $0 -h"
echo "Options:"
echo " -R: decode return address instead of caller address."
}
@@ -37,7 +36,7 @@ ADDR2LINE=${UTIL_PREFIX}addr2line${UTIL_SUFFIX}
NM=${UTIL_PREFIX}nm${UTIL_SUFFIX}
decode_retaddr=false
-if [[ $1 == "-h" ]] ; then
+if [[ $1 == "" ]] ; then
usage
exit 0
elif [[ $1 == "-R" ]] ; then
--
2.53.0