Add "auto" to the usage message so that it's a little clearer that you
can pass "auto" as the second argument. When passing "auto" the script
tries to find the base path automatically instead of requiring it be
passed on the commandline. Also use [<variable>] to indicate the
variable argument and that it is optional so that we can differentiate
from the literal "auto" that should be passed.

Cc: Jiri Olsa <jo...@kernel.org>
Cc: Alexei Starovoitov <a...@kernel.org>
Cc: Jessica Yu <j...@kernel.org>
Cc: Evan Green <evgr...@chromium.org>
Cc: Hsin-Yi Wang <hsi...@chromium.org>
Cc: Konstantin Khlebnikov <khlebni...@yandex-team.ru>
Cc: Sasha Levin <sas...@kernel.org>
Signed-off-by: Stephen Boyd <swb...@chromium.org>
---
 scripts/decode_stacktrace.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/decode_stacktrace.sh b/scripts/decode_stacktrace.sh
index 20b5af1ebe5e..5fbad61fe490 100755
--- a/scripts/decode_stacktrace.sh
+++ b/scripts/decode_stacktrace.sh
@@ -5,7 +5,7 @@
 
 usage() {
        echo "Usage:"
-       echo "  $0 -r <release> | <vmlinux> [base path] [modules path]"
+       echo "  $0 -r <release> | <vmlinux> [<base path>|auto] [<modules path>]"
 }
 
 if [[ $1 == "-r" ]] ; then
-- 
https://chromeos.dev

Reply via email to