Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2906960ybb; Fri, 27 Mar 2020 14:25:37 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsoT4/deOXGMTueWf8YcC1jFaq5nLlcNptcB8tP3y9MERtq/AeMA39KSJcw9anWLUUral+d X-Received: by 2002:a05:6830:1e38:: with SMTP id t24mr540937otr.125.1585344336915; Fri, 27 Mar 2020 14:25:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585344336; cv=none; d=google.com; s=arc-20160816; b=O8rxTSnVhQSH5rO38rrk38oG/AkLNDIZgGfNkkrm+0gdXE+vo6YDPF/bcP943tXCli EGBg5zkHSaoV1raNJmXKwvMAV+iplPg4fSdYMCBzHSzPsoS9erqAdtCSXkFbeU0uip3H P3n/+tDUok0RE6xADRAFswai6/VQQB0iV4ihbu3JpoK4+cHW3v07iqZEDw3Hb3rJ7Qnc e3AUmXDSATNs8QrT9OYIc+YnhQX91yGwT5wMLhJ48T2cj0GgysJuv823cOiBw+PBdwGu PFmxQtagEb0N/WKwSw1GZ38U5NHaAXYx1bO6hfQF8Zfr2x7cwbRdTXM+BuhGekBcvG8B yMgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=gfukkDHwtKj4BKlXc/fjhSsSldS9nfyhxc+J7rLMUOQ=; b=sdTfdQrdvmkMM20xJkWjzaezWOkMbugf/NayFpmGkAZIuYeR+mVJvKeJFd0AwVgnZv SfVMT5h3U2OhoHa0He+ZroIFTY3OeJxUelyPndHjORhYDz2qWIIW6kx+YHJ9ou9+gygY x2diV887l+zp3SXs6tKggP+ji3nAbCO6xQ4k72CZeDWiqjMPd5jNaU844+9ooaVEWDuf JY0CDjuaszzFT++nS14KWMhsdSyL4v9XmMIY2M+jcGaMcb0QryZlF30cSWbMZarCbwIS XC+B0GrDchLMEI4nliuo6T86dnjUOHCXk1VeD3UjeGE2ctbxqNJErUvHEHJKNr/J8c0l HLxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ef80zkdZ; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 192si2761483oii.36.2020.03.27.14.25.23; Fri, 27 Mar 2020 14:25:36 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ef80zkdZ; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727806AbgC0VYj (ORCPT + 99 others); Fri, 27 Mar 2020 17:24:39 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:51925 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727754AbgC0VYb (ORCPT ); Fri, 27 Mar 2020 17:24:31 -0400 Received: by mail-wm1-f68.google.com with SMTP id c187so13035263wme.1 for ; Fri, 27 Mar 2020 14:24:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=gfukkDHwtKj4BKlXc/fjhSsSldS9nfyhxc+J7rLMUOQ=; b=Ef80zkdZrF8agBFess6gmp2WYDfANzlCqZ5kc9TJFBJdhTDp8BBF/T2wvWSGKD2Ux+ 1bydBbVa7LeAgNcbuVtVp8X7svWe5bBvxYNsJIQ/VLYzCrCpAbwPukCbJs+eu6CTtY4B q7EKo0mkdJ20W4KVxCfqZmpORonw+voPf9/aoTIL04BSdjJD+EyO4sAx2yxwUXxSIS3p DGZmGaMYb6IvzZtokwms7DMjPzf4OWW1OEZfxbKQzCo0gbZJ5A3LsLpe5HGdYo3MGWf3 LlHtE0QeyNBdvK66wGB7ZbrpToVwC6WDxeqWpPLjSdlgb/Wxw+g15hVsRgOVt8bdL75J Si4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=gfukkDHwtKj4BKlXc/fjhSsSldS9nfyhxc+J7rLMUOQ=; b=f0jtotxu9sDdSRp6JHbH7LXtDm3Cz2ugmNR9pPr+REtDYPd+Vq1f6LIm5e9auLazQu 92c/WHnclAHpNZlgzsM4Ybu4BYA1MX2vtzM5L/Gq0lAHy1kWBylZHXbkGE4nrtupiPWF +VIZBLgQj5rCi12K8vmfGYdfPelvgF/UjET7TPM2JNtN/VF4uF1nO2xBGSgDyzE5iOMp S9UPXYjqkBIg9MNXOx+jD7I7FN0eWDPXSUGCRlF+WLx3tQzwh8esVH0lm7u7jLfmIMiU HRfnMNRjR8OnX68VDNgY8LGiiHPtgXBt0qmdkr3M4eGGjfc4aNezDkN5JN8jVu0ZuD00 IyNQ== X-Gm-Message-State: ANhLgQ1Z9NfJs6GvbHxUZg/mr0/6uaxy8IySEhKGhqveI8waCf9RbgQA U0khIbNdLfDAsV3dEoGLTQ== X-Received: by 2002:a7b:c846:: with SMTP id c6mr639905wml.189.1585344270664; Fri, 27 Mar 2020 14:24:30 -0700 (PDT) Received: from ninjahost.lan (host-92-23-82-35.as13285.net. [92.23.82.35]) by smtp.gmail.com with ESMTPSA id h132sm10215141wmf.18.2020.03.27.14.24.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Mar 2020 14:24:30 -0700 (PDT) From: Jules Irenge To: julia.lawall@lip6.fr Cc: boqun.feng@gmail.com, Steven Rostedt , Ingo Molnar , linux-kernel@vger.kernel.org (open list) Subject: [PATCH 10/10] trace: Replace printk and WARN_ON with WARN Date: Fri, 27 Mar 2020 21:23:57 +0000 Message-Id: <20200327212358.5752-11-jbi.octave@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200327212358.5752-1-jbi.octave@gmail.com> References: <0/10> <20200327212358.5752-1-jbi.octave@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Coccinelle suggests replacing printk and WARN_ON with WARN SUGGESTION: printk + WARN_ON can be just WARN. Signed-off-by: Jules Irenge --- kernel/trace/trace.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index 6b11e4e2150c..1fe31272ea73 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c @@ -1799,9 +1799,7 @@ static int run_tracer_selftest(struct tracer *type) /* the test is responsible for resetting too */ tr->current_trace = saved_tracer; if (ret) { - printk(KERN_CONT "FAILED!\n"); - /* Add the warning after printing 'FAILED' */ - WARN_ON(1); + WARN(1, "FAILED!\n"); return -1; } /* Only reset on passing, to avoid touching corrupted buffers */ -- 2.25.1