Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp5464373imm; Tue, 19 Jun 2018 10:45:46 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJO3+KB6xpUMIBBKcxCPosFzbpeOiJDSjUvrf+ryvXCp9aczSA8QLO3EbE6ZmuHxl7x6D+2 X-Received: by 2002:a63:7983:: with SMTP id u125-v6mr15678057pgc.267.1529430346895; Tue, 19 Jun 2018 10:45:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529430346; cv=none; d=google.com; s=arc-20160816; b=j+1Q2lIkEUJWP7+iOEMDj/O5V5IHzojWKoShvCNyuG+M7cB+h3RxyKoiZLF09E3D8h xzxDzv9ASVu6nwgrceFRRsTjeHrt7XWZIK04rxASgkzcKm9V7qDA+pRSxR4SWChR05X1 Ub/e6bFkr+4rF20oixU9WFkY9ZbHi4nnuaUwDd21CBKSqeWmXT/WkUQaB/sW+F/G74jx mnzPZXVkuMN5mKgrDyy/TcBeYhx7qNuWc8yTiMoIcu/4IFibvcGQZs+rX+RirBmA+u01 qBqcF96bhzcoNUbIA1y/JZaT7LmQp8zLBO3hJ4kVpukRZQ8tgDSeoWcmHfvE9UdPCyEz CgIg== 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=CVD3elAZ/NJLIqc1EwsGwLUXQ5h946VLlebpdv8Py0M=; b=GyChqXwGr+oxzu/9RirIS774gbyzDzelS6/+YoR7fSUgYBynxRAIeO1a+eENT7GnpP NS22HF2C4jIEjo+ARjTB4M7GJoaeWGgJI88TjIEfQDoDkNbmQFghOKhY/WmE4doyBpYY HVzHYqgDQ3qUNcpL7RzAor/Lbak1SsFBDe+kJSjgAoVfmcFew4Osmnf/paYsSXqijVxf mqFY+uNlXy1ptNzxmUXiZQ5JoThioKaNyVr7l9SFZ7wk0rZfJoMq6VWnzrTmDOmGq58m p3sdTQF+bPJZsqhwGk+iXTtbE3H887Bd8JjvW9fiIxJGIbPk5hNEdzZSpu4WTHpET2pJ NcRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@paul-moore-com.20150623.gappssmtp.com header.s=20150623 header.b=jh8weIUC; 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 b9-v6si242756plk.111.2018.06.19.10.45.26; Tue, 19 Jun 2018 10:45:46 -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=jh8weIUC; 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 S1030378AbeFSRoY (ORCPT + 99 others); Tue, 19 Jun 2018 13:44:24 -0400 Received: from mail-lf0-f43.google.com ([209.85.215.43]:36884 "EHLO mail-lf0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030323AbeFSRoW (ORCPT ); Tue, 19 Jun 2018 13:44:22 -0400 Received: by mail-lf0-f43.google.com with SMTP id g21-v6so785845lfb.4 for ; Tue, 19 Jun 2018 10:44:21 -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=CVD3elAZ/NJLIqc1EwsGwLUXQ5h946VLlebpdv8Py0M=; b=jh8weIUCM4ditSTJCvlRDPEoiWMJSFKm9m7/eYJUsJ2iDslN1nG2vTb5Ik+GyRf/yT WRBpFip+EFy4+AOSRqdHd4RWNJ056TSF+Kzx0VqiuHLYAUYcrmLUzZ3zkGORjEP4qFUT G5WYUMJLgfaZLJj/WuR6XOiHLkfck/wySaaS6LJ2le4HbcNi9i0dQzS5ZzR7TKEi51fj dXo9QqSIxvA8/qNihERcr1Jp0kPHaVmQlKJowNhxD0X5du+NUtZBlnhQ7NWymnkx3EkB rKGZijGujzkTCSkQiOhfpgu+ScVEG5dQDD0Mdu7JxcwTvULr6NIMJSv29C92t+9KG+NX 6BFg== 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=CVD3elAZ/NJLIqc1EwsGwLUXQ5h946VLlebpdv8Py0M=; b=BOUd7iVkhw30G39ApJD7fw4OgAYmY0BrMGAMc+OfAJI6YtJn3owWavt5K11aHhSpmi 8uKUHSIsA3Bh71qi46cvbfeZgXX77lXS20TM5xrlRv1pb04Fc9xKGVoTBlvwJ4twEOh5 sU9x1ZH8WAAPSc2qpnzk8JAfD4spPWD0NLWt7eudbrxPvhowv7gMB504e7+5gTTL7fXm KyJelTiqfg+gTyI/Zi/6Wk5e2ovyw2osZHwveuDM254K9Gk0oy/wGvA0AyCRWXWL3Arr wefoUE2Ke2Nhq8nlCYJAc/NRI5ZacK2QguYQ2jo7SBNKHfLLeaLJiJBCzi/BSwT6x+3G +R2Q== X-Gm-Message-State: APt69E0s1XMd0jsZpJdGZHzufZCCueycPsclJJnkRJ0nwn00Y4eT+9fe RKfac9TxNlUIQ6FREIuO0E82EKZowfFIZZ+hJs/u X-Received: by 2002:a19:5c12:: with SMTP id q18-v6mr9107197lfb.145.1529430260907; Tue, 19 Jun 2018 10:44:20 -0700 (PDT) MIME-Version: 1.0 References: <20180612080912.7827-1-peter.enderborg@sony.com> <20180612080912.7827-11-peter.enderborg@sony.com> In-Reply-To: <20180612080912.7827-11-peter.enderborg@sony.com> From: Paul Moore Date: Tue, 19 Jun 2018 13:44:10 -0400 Message-ID: Subject: Re: [PATCH 10/13] selinux: Cleanup printk logging in netport 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/netport.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) Merged, thanks. > diff --git a/security/selinux/netport.c b/security/selinux/netport.c > index 9ed4c5064a5e..7a141cadbffc 100644 > --- a/security/selinux/netport.c > +++ b/security/selinux/netport.c > @@ -173,9 +173,8 @@ static int sel_netport_sid_slow(u8 protocol, u16 pnum, u32 *sid) > out: > spin_unlock_bh(&sel_netport_lock); > if (unlikely(ret)) { > - printk(KERN_WARNING > - "SELinux: failure in sel_netport_sid_slow()," > - " unable to determine network port label\n"); > + pr_warn("SELinux: failure in %s(), unable to determine network port label\n", > + __func__); > kfree(new); > } > return ret; > -- > 2.15.1 -- paul moore www.paul-moore.com