All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bhaskar Chowdhury <unixbhaskar@gmail.com>
To: unixbhaskar@gmail.com, matttbe@kernel.org,
	akpm@linux-foundation.org, luca.ceresoli@bootlin.com,
	cmllamas@google.com, mhiramat@kernel.org,
	linux-kernel@vger.kernel.org
Subject: [PATCH] scripts: Getting rid of -h option, when empty, the usage will be shown
Date: Mon,  8 Jun 2026 04:50:33 +0530	[thread overview]
Message-ID: <20260607232509.2812679-1-unixbhaskar@gmail.com> (raw)

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


             reply	other threads:[~2026-06-07 23:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-07 23:20 Bhaskar Chowdhury [this message]
2026-06-11 13:41 ` [PATCH] scripts: Getting rid of -h option, when empty, the usage will be shown Matthieu Baerts
     [not found]   ` <20260613233012.3245472-2-unixbhaskar@gmail.com>
2026-06-13 23:24     ` Bhaskar Chowdhury
2026-06-17 14:18       ` Sasha Levin

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=20260607232509.2812679-1-unixbhaskar@gmail.com \
    --to=unixbhaskar@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=cmllamas@google.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=luca.ceresoli@bootlin.com \
    --cc=matttbe@kernel.org \
    --cc=mhiramat@kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.