Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1571854ybz; Sat, 2 May 2020 02:55:31 -0700 (PDT) X-Google-Smtp-Source: APiQypK0g5KSGQeGzf2gfxcBHcU745SyOoL9isx0XaeAXlqrRsp+Cbnyz08aCkNxdMWeJ5C8Y2Qq X-Received: by 2002:a05:6402:14c8:: with SMTP id f8mr6779331edx.272.1588413331204; Sat, 02 May 2020 02:55:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588413331; cv=none; d=google.com; s=arc-20160816; b=aIKinE3FALC3mdpO1UoSUuszKBSKhXjnOgosHZVLgEqjgYjchmCOhfE822MG43JdB9 XQ7SLPZbjvof5TxImH+2mias0R8e6kpYwIh+TxEEsmbY3ZHEbWPL7ELDXv8rEpVshvCa uCPAQ7kld2shvQ+WIkQFw6v9roacphlSqF0W64rTvpuC0RwkOPmy6bWtFX/rAWTvPZmZ p7xS+dZEuOGN4Cf1dj+cH9fugW6REWZagoFudlBVt1XVjtQ0W0/9HAPafT83i6SAdc/a CQtR0HSFD8I3KF1MbUcJtPaE6LQ+KgZsvNajc4S2G061Q33LILRy26w4NtUvLlBLMT75 jliQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=9/nJO264oStC5d331d+WzGCJDg/FyYC6C0gRVG6mU4c=; b=I/Ou3D3eV2QafDujMsCU9eJifDUw8TQN3p6Yc2sa+K3gPfojhJZOYYowDBnPq4qnPi nur3QpBbKiNeJj7wWlkF1GimRlA78yhvTvX780Q+zrJCuR1za88glAPLJANvQPl2zdet JgVDU1W/vlK5nGffFDcCa/YJeU5CnW6XgwJre1Yen7Yos0He8P9aSDGKyS2W66Q0tsCP bsy1R416tqW/VXFZbJvLOVXWJhhayQJSj2hSn+qf+te1kviYsWiMg0uBGIt0vQQZ5GCw TgB3BcSGtBubpLo1O/SUwB2JH0qHjTQ6BLNxJ1+5bhH3N+my8TvorJGzGk1ACGNqywEx JGhw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qq22si3216713ejb.523.2020.05.02.02.54.36; Sat, 02 May 2020 02:55:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727105AbgEBJvi (ORCPT + 99 others); Sat, 2 May 2020 05:51:38 -0400 Received: from elvis.franken.de ([193.175.24.41]:36554 "EHLO elvis.franken.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726548AbgEBJvi (ORCPT ); Sat, 2 May 2020 05:51:38 -0400 Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1jUoo0-0007w3-00; Sat, 02 May 2020 11:51:32 +0200 Received: by alpha.franken.de (Postfix, from userid 1000) id 6A89CC0360; Sat, 2 May 2020 11:50:51 +0200 (CEST) Date: Sat, 2 May 2020 11:50:51 +0200 From: Thomas Bogendoerfer To: Tiezhu Yang Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Xuefeng Li , Sergei Shtylyov Subject: Re: [PATCH v2] MIPS: tools: Show result for loongson3-llsc-check Message-ID: <20200502095051.GA3576@alpha.franken.de> References: <1588391701-5588-1-git-send-email-yangtiezhu@loongson.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1588391701-5588-1-git-send-email-yangtiezhu@loongson.cn> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, May 02, 2020 at 11:55:01AM +0800, Tiezhu Yang wrote: > It is better to show the result before loongson3-llsc-check exit, > otherwise we can see nothing if the return status is EXIT_SUCCESS, > it seems confusing. > > E.g. without this patch: > > [loongson@localhost tools]$ ./loongson3-llsc-check ../../../vmlinux > [loongson@localhost tools]$ > > With this patch: > > [loongson@localhost tools]$ ./loongson3-llsc-check ../../../vmlinux > loongson3-llsc-check returns success > [loongson@localhost tools]$ > > Signed-off-by: Tiezhu Yang > --- > > v2: > - move "returns" after "loongson3-llsc-check" suggested by Sergei > > arch/mips/tools/loongson3-llsc-check.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/arch/mips/tools/loongson3-llsc-check.c b/arch/mips/tools/loongson3-llsc-check.c > index 0ebddd0..bdbc7b4 100644 > --- a/arch/mips/tools/loongson3-llsc-check.c > +++ b/arch/mips/tools/loongson3-llsc-check.c > @@ -303,5 +303,7 @@ int main(int argc, char *argv[]) > out_close: > close(vmlinux_fd); > out_ret: > + fprintf(stdout, "loongson3-llsc-check returns %s\n", > + status ? "failure" : "success"); > return status; > } > -- > 2.1.0 I've applied your first version, please rebase to mips-next. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]