Re: [PATCH smatch] smdb.py : Clarify <function> comes before <type> in info option

Chris Li <[email protected]>
Newsgroups org.kernel.vger.linux-sparse
Message-ID <CACePvbUdWi0eGR79KFurZwEx-wEKGQJ-+gdse4hVNu-FMWVgvQ@mail.gmail.com>
This patch is for Dan to apply on smatch, right?

Does not look like a patch for the sparse project.

Chris

On Thu, Oct 9, 2025 at 7:38 AM Amit Dhingra <[email protected]> wrote:
>
> Signed-off-by: Amit Dhingra <[email protected]>
> ---
>  smatch_data/db/smdb.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/smatch_data/db/smdb.py b/smatch_data/db/smdb.py
> index 29f1a339..13f1017c 100755
> --- a/smatch_data/db/smdb.py
> +++ b/smatch_data/db/smdb.py
> @@ -19,7 +19,7 @@ except sqlite3.Error as e:
>  def usage():
>      print("%s" % (sys.argv[0]))
>      print("<function> - how a function is called")
> -    print("info <type> - how a function is called, filtered by type")
> +    print("info <function> <type> - how a function is called,
> filtered by type")
>      print("return_states <function> - what a function returns")
>      print("call_tree <function> - show the call tree")
>      print("where <struct_type> <member> - where a struct member is set")
> --
> 2.51.0
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.