Received: by 10.213.65.68 with SMTP id h4csp324417imn; Tue, 13 Mar 2018 05:42:37 -0700 (PDT) X-Google-Smtp-Source: AG47ELvejzWNx5VErlURQqAckDdyTfvhKHsxvBYuZqWZC0kolVZmKCwmkFmKKxN5GGbu6P5CUCIq X-Received: by 2002:a17:902:1c5:: with SMTP id b63-v6mr428410plb.311.1520944957785; Tue, 13 Mar 2018 05:42:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520944957; cv=none; d=google.com; s=arc-20160816; b=q+j3Boof7wiyQTa6ZKL/5LSUGavEfaP8kBL1k2/wYzEDrGr6dTbV2iTf8L+y4+jnwi ArQWzaT3ka2sPBk4CLlp9oZlrcrTDc/W3+EZMdiIlVEkKgI/tLSfx9JrmWnrLNPs0Krw CmfOnbkdcT6oEst+xEn5c/oXNVW/Slab8JAWm70c88URnX+zW/CFnTO34DqeILzDT5cG haUrK00VVptEGGZno15HAi7ZsUVZI+R/wjYpga3fCsRwC4TDtxQWhCexDs2I89QQvGFg rHyLG/jIIY5Nz6RfTacCSeh/MqsBo0P8N/1xvlEu+I5qATfgpKcXxyRldVxViljdEE5u Xcqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=1LIhOGIc7N/wUm5CkNvTvakT7dTaYb+cF5zQXAaKnFQ=; b=SAElhi6FBUJM6HOC1lRfl7WlJkseKb5Fw3v99AhTA8xB08vO1rqrgDeB5YOhHFj/VF 6kjLUBDOTdpr4h3LUiL/++picAlZJzM0HKcyvIROn+iOauBpOapqneZ9aCgCq4RDZXOI MWK2YrJoutcs7cH8q/5g8OtT8g7n8l0ijJZfnn+QVDnDpE72ehbjRAb52CkU3gcfzLJZ /eRYuqjNG0h67QdE0t4DxZ+17P4lVuMQqva6rHGVWO52gyGJHQSqBW2BRQGu+tuNKv4o rkD3sVzI/qjmbPwvoS0oalfvssvC5DWCmMo6a9imMvzw64VhCS8gwuGRa6nqNHMpA1N2 M9CA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t11si72219pgf.93.2018.03.13.05.42.23; Tue, 13 Mar 2018 05:42:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932772AbeCMMlM (ORCPT + 99 others); Tue, 13 Mar 2018 08:41:12 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:55263 "EHLO huawei.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1752432AbeCMMlL (ORCPT ); Tue, 13 Mar 2018 08:41:11 -0400 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id A4A3C873E896B; Tue, 13 Mar 2018 20:40:57 +0800 (CST) Received: from linux-ibm.site (10.175.102.37) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.361.1; Tue, 13 Mar 2018 20:40:50 +0800 From: Yisheng Xie To: CC: , , , , , , , Yisheng Xie Subject: [PATCH v2 -perf/core 2/2] perf debug: Avoid set quiet once more Date: Tue, 13 Mar 2018 20:31:14 +0800 Message-ID: <1520944274-37001-2-git-send-email-xieyisheng1@huawei.com> X-Mailer: git-send-email 1.7.12.4 In-Reply-To: <1520944274-37001-1-git-send-email-xieyisheng1@huawei.com> References: <1520944274-37001-1-git-send-email-xieyisheng1@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.102.37] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When use --quiet to disable log, we will set quiet first, then check the quiet to decide whether need to call perf_quiet_option, so no need to set the quiet once more. Signed-off-by: Yisheng Xie --- - This is a new add-on patch tools/perf/util/debug.c | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/perf/util/debug.c b/tools/perf/util/debug.c index f3a71db..3d64596 100644 --- a/tools/perf/util/debug.c +++ b/tools/perf/util/debug.c @@ -232,7 +232,6 @@ int perf_quiet_option(void) var++; } - quiet = true; return 0; } -- 1.7.12.4