lkml.org 
[lkml]   [2017]   [Oct]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2] objtool: Print top level commands on incorrect usage
On Sat, Oct 14, 2017 at 08:17:54PM +0530, Kamalesh Babulal wrote:
> Print top-level objtool commands, along with the error on incorrect
> command line usage. Objtool command line parser exit's with code 129,
> for incorrect usage. Convert the cmd_usage() exit code also, to maintain
> consistency across objtool.
>
> After the patch:
> $ ./objtool -j
> Unknown option: -j
>
> usage: objtool COMMAND [ARGS]
>
> Commands:
> check Perform stack metadata validation on an object file
> orc Generate in-place ORC unwind tables for an object file
>
> $ echo $?
> 129
>
> Cc: Ingo Molnar <mingo@kernel.org>
> Signed-off-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
> ---
> v2:
> - Changes to commit message only.

Acked-by: Josh Poimboeuf <jpoimboe@redhat.com>

--
Josh

\
 
 \ /
  Last update: 2017-10-22 17:13    [W:0.045 / U:0.320 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site