Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1076569pxb; Fri, 26 Feb 2021 01:46:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJy6VOeu28+XsgHjPg36YT9GoPOZn8XqDrvmeie7sGrPTewstcDuLqlSv3EB0lI0YJFf1Z6q X-Received: by 2002:a17:906:1759:: with SMTP id d25mr2364273eje.524.1614332790547; Fri, 26 Feb 2021 01:46:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614332790; cv=none; d=google.com; s=arc-20160816; b=wZIht9s9dBUzVul3k2aVcx9Cfgm1u1RCnW+M8E2jBYyFZc/auVnECUMlYg3dKpJvMN A7wEPRslINGu4buxyzKVrbFaMY4YgFHeohZEpxFqVf0guRqQm8W7UBzutXjh5od7AvyS E8yzckkQzXv04874HxFWCshdpAGS0lpPqL1hVmozYUOq1Nz9CAceNDpTEV/pbsPdh/jw SLkO5Jjx5PlVEUnfA/qD6Mlfkds3SAAlZSIU3vpyXLCS+i7mxyseqGu+DLKBOF8v4KoP m1iHuYC7xzRLjdfxG8jd9CyLXAcMVGAGAH21O9a3E3RseZqrJWDC3fGUL7uiQ7v1fKNc Wm9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=IDCH0pTnaNQxobh3Tehr1EhGG7Oe8fihKeXbaFFdZnc=; b=TKV8OdfOnmVFdHosDHF+zGPY59a0KPo6jWEwI/wY2PZjY85bsva7y8LolMJonbubT7 SNho5MStr6Itbk9K14Kf0uR+DMSyZKQ3UgvM/HmNZ2XgdCb5FZuA/p85cjqfziHzM8U3 PHdT2PYH8wFjawrmWyMFGW6kpqpYC8w+SCajNp62mZPJgdJpGfvcQI+Z0Er1hStaKqVj Cy7JOY+eOId70OXtfQJD+f2qONRv7eXLRPrP59f3oCGcb3MAMfaAheMQfj1nsdIbzCnG mK2msRepSMBa76pewwxEhDSeE/5wKFYFtOGfzGy5cFBf3xoVe3MFNz66YhakOJ6twFqB jltA== 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 r1si5602856ejp.0.2021.02.26.01.46.07; Fri, 26 Feb 2021 01:46:30 -0800 (PST) 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 S229953AbhBZJpi (ORCPT + 99 others); Fri, 26 Feb 2021 04:45:38 -0500 Received: from smtp25.cstnet.cn ([159.226.251.25]:36480 "EHLO cstnet.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230001AbhBZJpd (ORCPT ); Fri, 26 Feb 2021 04:45:33 -0500 Received: from localhost.localdomain (unknown [124.16.141.241]) by APP-05 (Coremail) with SMTP id zQCowAB3WRb8wjhgitu9AA--.22780S2; Fri, 26 Feb 2021 17:44:29 +0800 (CST) From: Xu Wang To: rostedt@goodmis.org, mingo@redhat.com Cc: linux-kernel@vger.kernel.org Subject: [PATCH] tracing: Use WARN(1,...) Date: Fri, 26 Feb 2021 09:44:26 +0000 Message-Id: <20210226094426.49016-1-vulab@iscas.ac.cn> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID: zQCowAB3WRb8wjhgitu9AA--.22780S2 X-Coremail-Antispam: 1UD129KBjvdXoW7Wry5Wry5AF4UKr17KF15Jwb_yoWxZrc_CF 4jg3W8Kw1UCFyqyr43Can7Xry0ka4qgF10kw1rtrW3A3Z8Gr1rWan8ArnrKr97XryqgF97 ZrnrWrykKrsIvjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUb28YjsxI4VWkKwAYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I 6I8E6xAIw20EY4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l8cAvFVAK0II2c7xJM2 8CjxkF64kEwVA0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVW8JVW5JwA2z4x0Y4vE2Ix0 cI8IcVCY1x0267AKxVWxJVW8Jr1l84ACjcxK6I8E87Iv67AKxVWxJr0_GcWl84ACjcxK6I 8E87Iv6xkF7I0E14v26rxl6s0DM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI 64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r1j6r18McIj6I8E87Iv67AKxVWUJVW8Jw Am72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41lc2xSY4AK67AK6r4fMxAIw28I cxkI7VAKI48JMxC20s026xCaFVCjc4AY6r1j6r4UMI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2 IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWUXVWUAwCIc40Y0x0EwIxGrwCI 42IY6xIIjxv20xvE14v26r1j6r1xMIIF0xvE2Ix0cI8IcVCY1x0267AKxVWUJVW8JwCI42 IY6xAIw20EY4v20xvaj40_WFyUJVCq3wCI42IY6I8E87Iv67AKxVWUJVW8JwCI42IY6I8E 87Iv6xkF7I0E14v26r1j6r4UYxBIdaVFxhVjvjDU0xZFpf9x07bFBM_UUUUU= X-Originating-IP: [124.16.141.241] X-CM-SenderInfo: pyxotu46lvutnvoduhdfq/1tbiCQoEA102Z9fu-AAAsN Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use WARN(1,...) rather than printk followed by WARN_ON(1). Signed-off-by: Xu Wang --- kernel/trace/trace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index 526fd5ac2ba8..a556b8c00a9f 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c @@ -1957,7 +1957,7 @@ static int run_tracer_selftest(struct tracer *type) tr->current_trace = saved_tracer; if (ret) { /* Add the warning after printing 'FAILED' */ - WARN(1, KERN_CONT "FAILED!\n"); + WARN(1, "FAILED!\n"); return -1; } /* Only reset on passing, to avoid touching corrupted buffers */ -- 2.17.1