Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp5470751imm; Tue, 19 Jun 2018 10:52:40 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKH0ziZLbEPvngvtC1J02aZfzPtWN7FtQiYATftH6uSAuLYzvp9PtHVnq/UsFwzQ+WOdR/V X-Received: by 2002:a17:902:6b04:: with SMTP id o4-v6mr20280705plk.101.1529430760329; Tue, 19 Jun 2018 10:52:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529430760; cv=none; d=google.com; s=arc-20160816; b=ZRHC/T0gWPCtblAsKDddg9S9xcQQZE5lY4dQggrTrSsLskpsfi40LbDbKRCLsk64WI jaDQINtlFU0hReWEQMZqBTW/VNcpQFfw/4ot0m3e7WomSkTr5aTaAqaBJJPMwZYzY/M4 V0FuUMJZlO7TKXCMo4aD9HnVQnDzGvrVPJCXBb0FYRNTZodroo7OtB4zwJvDPgsMnCLX WskUHzP1Fhg4RHenvT4Qj9XADgBKLD4iDUKufS5FfSCH2u6r/RajbAXoW5SicwKOkjmc OvdaRAJPfx7jmHMrdHJZOVzO/1mohzoHNPnJ+Lvq2LkYBg3rrgriBE1fjx8ry/EvNKrq nqfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=duBr1fF5dRuIY8Do80OvQcjMuxCD9C9/ZfuS0JRYR7c=; b=nOun7X++pXZFnR/PN8u0q8dnLzI3+VEtq1myyEkmkvCzZhpCbodIybf0l3JhUk/Asj hs/q51FC+9FkQczsJm89GpJtkHgMgyThY06LbBlmxoP0CgsfvWlWFIzXMNvjUZKW3jJz urotTR0OLfg4mX++ToCXXbbH0odtVol546i094mvpI2cMWsFZarpV85kzXtspN6Gbvk5 usoQeOu1g4BT7dYcPaXcVjvuTVlufIu144hZOZ6w1Ycm0rspj8P+NG8h96UiM/x2Rask yF08Otzf8hbG9+XeDTk9cUk6nVjMY63kOgWjs7SgscQwMSfHR7Mpog2NlcesJX5vt2D3 n58g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@paul-moore-com.20150623.gappssmtp.com header.s=20150623 header.b=2S36X+cV; 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 t19-v6si190438pgb.196.2018.06.19.10.52.26; Tue, 19 Jun 2018 10:52:40 -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=@paul-moore-com.20150623.gappssmtp.com header.s=20150623 header.b=2S36X+cV; 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 S1030417AbeFSRuv (ORCPT + 99 others); Tue, 19 Jun 2018 13:50:51 -0400 Received: from mail-lf0-f54.google.com ([209.85.215.54]:34836 "EHLO mail-lf0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966999AbeFSRut (ORCPT ); Tue, 19 Jun 2018 13:50:49 -0400 Received: by mail-lf0-f54.google.com with SMTP id i15-v6so824788lfc.2 for ; Tue, 19 Jun 2018 10:50:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paul-moore-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=duBr1fF5dRuIY8Do80OvQcjMuxCD9C9/ZfuS0JRYR7c=; b=2S36X+cVMBukT7/prjt+of3fmJ2NCZiSS7YOJhgwQ0CaCqvOMp6AjvM8OmBJWj5LwJ zITZsYFoWuvhUyjkpE18B60Gd03CcsuRvmZE070vwsYuphZpGyC56JJqNQpcGbuO4iRj Gi+RbdUZRgd8/ziBqVJCN5S/yuKvFkbuLZz57kH//qGeF1WNTth+1NBX3KGccUf6oLof xCfIZHEEvXyHEptlRZPDSvYyLgY6PtnSc+bdn/irLYYXOSwgjW8ZrFxKig+eCGPdB7i/ ZjH8N0ZcYI/HNs107edWPx/M1rcXCvE/SGgmT8SW6LiVQE5Zaq3sMoQz9odYP57Fxi8U 737g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=duBr1fF5dRuIY8Do80OvQcjMuxCD9C9/ZfuS0JRYR7c=; b=NrCXi4ftvjHem7M4FLhLSx1gIz4rtniycUkCIa65QKtsUcfFm8Uh+7dEKsvuNXxYv/ mABFnAHgRe/yLifhaq44VWIhmUr10yn67VC5Y0JNLFXWMdNkWNLOI1xAaxycbbsyfodj orhZZ1e0sOulk0Vh9Pc+pH3mpLIhYRWeR6Kk5Y7ydc2NZ97aSvOHthrtHELQH86aCMzp rsrr7CrXRZcK4siTV7CfjdjwNxwQVUbhIoN11mRvhOcCK/LwiPjaNZCS3mgt3Fkt5tOm ihQSpRe+5NvjjKgmkL4YPuSbvVSVzHKqm7jep/SFXelwso1d+wrhjkbKBSXQoDT6Jnu3 Y3fA== X-Gm-Message-State: APt69E3puT1aVcRYFfhBdzJ7+E6V0tb0VXtp07A7b/O06MMYQLY2PRG9 7X2s6V5fZ3lywl7ciGnTGWR1qbbKA0NqhTVZACoU X-Received: by 2002:a2e:29cf:: with SMTP id p76-v6mr12635230ljp.12.1529430647826; Tue, 19 Jun 2018 10:50:47 -0700 (PDT) MIME-Version: 1.0 References: <20180612080912.7827-1-peter.enderborg@sony.com> <20180612080912.7827-14-peter.enderborg@sony.com> In-Reply-To: <20180612080912.7827-14-peter.enderborg@sony.com> From: Paul Moore Date: Tue, 19 Jun 2018 13:50:36 -0400 Message-ID: Subject: Re: [PATCH 13/13] selinux: Cleanup printk logging in netnode To: peter.enderborg@sony.com Cc: Stephen Smalley , Eric Paris , James Morris , danielj@mellanox.com, dledford@redhat.com, selinux@tycho.nsa.gov, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, serge@hallyn.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 12, 2018 at 4:09 AM Peter Enderborg wrote: > > Replace printk with pr_* to avoid checkpatch warnings. > > Signed-off-by: Peter Enderborg > --- > security/selinux/netnode.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) Merged, thanks. > diff --git a/security/selinux/netnode.c b/security/selinux/netnode.c > index 6dd89b89bc1f..afa0d432436b 100644 > --- a/security/selinux/netnode.c > +++ b/security/selinux/netnode.c > @@ -238,9 +238,8 @@ static int sel_netnode_sid_slow(void *addr, u16 family, u32 *sid) > out: > spin_unlock_bh(&sel_netnode_lock); > if (unlikely(ret)) { > - printk(KERN_WARNING > - "SELinux: failure in sel_netnode_sid_slow()," > - " unable to determine network node label\n"); > + pr_warn("SELinux: failure in %s(), unable to determine network node label\n", > + __func__); > kfree(new); > } > return ret; > -- > 2.15.1 > -- paul moore www.paul-moore.com