]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
objtool: Use "action" in error message to be consistent with help
authorSiddh Raman Pant <siddh.raman.pant@oracle.com>
Fri, 10 May 2024 09:32:57 +0000 (15:02 +0530)
committerJosh Poimboeuf <jpoimboe@kernel.org>
Wed, 3 Jul 2024 06:40:24 +0000 (23:40 -0700)
The help message mentions the main options as "actions", which is
different from the optional "options". But the check error messages
outputs "option" or "command" for referring to actions.

Make the error messages consistent with help.

Signed-off-by: Siddh Raman Pant <siddh.raman.pant@oracle.com>
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
tools/objtool/builtin-check.c

index 5e21cfb7661d0e0c97e65b186cdaa47016b1fa22..387d56a7f5fb8da8435d0a3f5c05eeee66932c9b 100644 (file)
@@ -144,7 +144,7 @@ static bool opts_valid(void)
            opts.static_call            ||
            opts.uaccess) {
                if (opts.dump_orc) {
-                       ERROR("--dump can't be combined with other options");
+                       ERROR("--dump can't be combined with other actions");
                        return false;
                }
 
@@ -159,7 +159,7 @@ static bool opts_valid(void)
        if (opts.dump_orc)
                return true;
 
-       ERROR("At least one command required");
+       ERROR("At least one action required");
        return false;
 }