Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2907469ybb; Fri, 27 Mar 2020 14:26:14 -0700 (PDT) X-Google-Smtp-Source: ADFU+vshGjvLFYYjpi8ZEmoBV+MKMe8uMdA61uvhc3UtNOrm6fyUp6BBFt7jo1I32GKvqYeopxox X-Received: by 2002:aca:891:: with SMTP id 139mr662095oii.137.1585344374064; Fri, 27 Mar 2020 14:26:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585344374; cv=none; d=google.com; s=arc-20160816; b=Vpo4NPIRR3SenJbJBCwC0Ux128DV5giLOEu/WvsJ4snRCgUd429K9WCFxPl4LOtg0S myQ0QUTfKAZybUuMXnQspMGtxpQFlHBQmNHdV+FGtq12NAsfCAcmVhwERw69fgYXtuSN I6Shert8DneMjXJ9z9GfGsL0FVcqgm+sklyElwYeKEg29Mz9dEsN1McMOlFSdfHwgkQz 4FmVZw8HkmbN50BCEU839461AmTTsM3k2Vypq7Zf9yGfHSPmBQc9mggthRxXziAyESyS pTIz6XlolO60V0UM8llP6KFn2Z01Z17FdrfcOyI+LaZkURZKopIfG8oGmiW31fnv266L q6bw== 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=FBdbyoUN01yoZ7UxYctSWg2cmDsZ8i4wniBsQLfNGTM=; b=dAwPAd2ZOeKx9kLL0Mb6Hh6IhU1W0phZFH5dRUuZYh80PZEl20Xn1pxZRaK4nGNlzq wpz+fvMu5GXOG8dqLiQ+LxPxQoiOvt8mg6Aghtw0/QRg66NgQejfKOzQkJqgxhs32nJ4 B2mF9rbzHyTpcY7GN99bdKCo9D9UiTpK7I3aQxK+STnfkWYD6HPEYCvIEMk1+ZYvISD+ 51XPC/QZCd0R5OV4Ef9j6VAPxh4+J6YyL6WdQJSEJ58Udo1ESGrOUzf3IWRm1QVsTxpj gm1EgdZpKvNj+zADYzCXA0WJ/tKhDgJCtTrRwQqAPO/3i9CZNkqXVqFCc6Lh2I7/8QrI 6tmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=J26H4YBJ; 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 w28si883156oth.317.2020.03.27.14.25.58; Fri, 27 Mar 2020 14:26:14 -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=J26H4YBJ; 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 S1727835AbgC0VYs (ORCPT + 99 others); Fri, 27 Mar 2020 17:24:48 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:37213 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727736AbgC0VY3 (ORCPT ); Fri, 27 Mar 2020 17:24:29 -0400 Received: by mail-wr1-f66.google.com with SMTP id w10so13294136wrm.4 for ; Fri, 27 Mar 2020 14:24:29 -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=FBdbyoUN01yoZ7UxYctSWg2cmDsZ8i4wniBsQLfNGTM=; b=J26H4YBJfcfI7AqNMSkSAbjhs9zBDadfc8kGzXjPfnIkrZVa/ARftywRaITG0xcL3B L5I1gMuNwK6NFbHggHbaSxcnIz0OvExfPcwUBKfuefTlyiZeNEVQEqeW9oajinZZv5Lr XgwZRrUzQXx3PDXMMgVwJVGx3rAf2jYO38bPJ43qmAy4y00zbe6Wj4ps8x20dero5941 KvQUVfTNbGkdfxaIoEdap3lU2yLuO2JtIow8gB9BlA4DinSVomfEqS/6hChTxDk3vDWr 1MibhKIfKGL8cxqHxp4k1pREVIS72f2nHWtAhujIiHwtNjbHAAkYSAbIKnMN131KsnYV wYng== 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=FBdbyoUN01yoZ7UxYctSWg2cmDsZ8i4wniBsQLfNGTM=; b=pW31fksmUz97lgfTsMsj9lWKc8vkM/zilaKk/nr9kOtTpPQNmcRKj1ZPZIR08Ha++c wrWwgXNUVX2ZR5gKfbOJ28tQL5Xay2kwy2kOMH5gEZcnyqPwX+zxXkWE/hguMf/66DV/ gdY8DCL3M8qa1iOMRRdVEFrC6TN74QBlhWK5fAr28EjHAcIsGQM4gwGajKALyffWOOQo XBGVAu7FIuvI+jz0fgJTZq/L6dzp0U1Bg+kbhXFJ9kyD3wBP1lRtXb8MIYgNiL2Jp0qn viMdk4mJU7ngdUwetKZhZzsaa0YD5vHWmCe4CfS5yUMJ6rUmsqkJQqobxI3ZEYEFVhXm WG+Q== X-Gm-Message-State: ANhLgQ0rtQpSkRI70eb38UXvJCEb+D1ITBTud4rqU4rUinhN9oRSnJa2 ZrbslUxCQy3SIf9hlU54Fg== X-Received: by 2002:adf:feca:: with SMTP id q10mr1463421wrs.199.1585344268398; Fri, 27 Mar 2020 14:24:28 -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.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Mar 2020 14:24:28 -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 08/10] trace: Replace printk and WARN_ON with WARN Date: Fri, 27 Mar 2020 21:23:55 +0000 Message-Id: <20200327212358.5752-9-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_output.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kernel/trace/trace_output.c b/kernel/trace/trace_output.c index b4909082f6a4..c0efab8a40c4 100644 --- a/kernel/trace/trace_output.c +++ b/kernel/trace/trace_output.c @@ -764,8 +764,7 @@ int register_trace_event(struct trace_event *event) list_add_tail(&event->list, list); } else if (event->type > __TRACE_LAST_TYPE) { - printk(KERN_WARNING "Need to add type to trace.h\n"); - WARN_ON(1); + WARN(1, "Need to add type to trace.h"); goto out; } else { /* Is this event already used */ -- 2.25.1