diff options
author | Paul Bolle <[email protected]> | 2016-10-25 22:56:05 +0200 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2016-10-26 08:41:06 +0200 |
commit | bb12d6740f6de393927362f23f833a79d85df384 (patch) | |
tree | 4f3084ff005d082ee58bd9fc75e82c0dde791204 | |
parent | bdcc18b548b8f1fab23c097724c6f32daac03185 (diff) |
x86/decoder: Use stderr if insn sanity test fails
If the instruction sanity test fails, it prints a "Failure" message to
stdout. Make this program behave like the rest of the build and print
that message to stderr.
Signed-off-by: Paul Bolle <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
-rw-r--r-- | arch/x86/tools/insn_sanity.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/tools/insn_sanity.c b/arch/x86/tools/insn_sanity.c index ba70ff232917..1972565ab106 100644 --- a/arch/x86/tools/insn_sanity.c +++ b/arch/x86/tools/insn_sanity.c @@ -269,7 +269,8 @@ int main(int argc, char **argv) insns++; } - fprintf(stdout, "%s: %s: decoded and checked %d %s instructions with %d errors (seed:0x%x)\n", + fprintf((errors) ? stderr : stdout, + "%s: %s: decoded and checked %d %s instructions with %d errors (seed:0x%x)\n", prog, (errors) ? "Failure" : "Success", insns, |