From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934646AbcJYU4W (ORCPT ); Tue, 25 Oct 2016 16:56:22 -0400 Received: from lb2-smtp-cloud3.xs4all.net ([194.109.24.26]:47829 "EHLO lb2-smtp-cloud3.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754050AbcJYU4S (ORCPT ); Tue, 25 Oct 2016 16:56:18 -0400 From: Paul Bolle To: Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" Cc: Andrew Morton , x86@kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] x86: use stderr if insn sanity test fails Date: Tue, 25 Oct 2016 22:56:05 +0200 Message-Id: <1477428965-20548-3-git-send-email-pebolle@tiscali.nl> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1477428965-20548-1-git-send-email-pebolle@tiscali.nl> References: <1477428965-20548-1-git-send-email-pebolle@tiscali.nl> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- arch/x86/tools/insn_sanity.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, -- 2.7.4