Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp5466509imm; Tue, 19 Jun 2018 10:48:05 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIKpce6U+Z+fksEgyQtNIDSJql7F6uHxlqFxOm5M/AiyO/2R17p7buQ6PgNEg+gZYFbiWo1 X-Received: by 2002:a65:6148:: with SMTP id o8-v6mr15519101pgv.93.1529430485758; Tue, 19 Jun 2018 10:48:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529430485; cv=none; d=google.com; s=arc-20160816; b=S5M3ocmHP3RsDIrOFFeWXyvLLrVeElzmXXo3Yfh5wDjlkYIg6+I+hQNaFW4A6IGw0f E6I5NRBL5M7N0+oWO657XavT4fYtriOOp4e2puzkxzHg5TuUXndo2kv7R1o+ntSW+hYy dw1dnOnvZQ6IkmKucFAA4K9w1zR7Faac02m5gql9v6wXQmbL8ZZdnN5RtoSYAlPNR378 LEngzNyCAMKHAXsFKR1sjjYClsaR2RYp/XeSV04zUSdfAaOgrmWlGZPZZMnUYozE+/yq 8BZ7dEHCJ/6EE1hOzQtKl0Gr4K7v2CqZBTUbGssJLKfMb00ZraSFThJz8npOA545J2T9 xfpg== 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=sdMe0drgRtpCioWKRZdDc4HRisfnQZ03Ti9KNXMG3Y4=; b=As+cSE1t9TzzRZ81Yu/lW2AVA7AmcY9sYN0TA+isM0VPQRdXPkMcg1lUokOACyw5Sj 1SWbFw+QEWpSPUNvQEmfFq89hhHoTM1qvkTw9xtx3HBdZBvRiURnJALON34cnFA71+Fj BsgkHCLF6CttTpDeWotCjzmBXGMEANz2pZ5AvRHj5jSSME3txbCg12x9SXYmjUaoDBSw 8j8tiLC3NdRrvQ0xt2c3wLJmGnMaRsa1eexCRY6WiWkcftdtYVKsc5DC1MdIK6uRb4Bi Y9HeqwVAuJUZHSCyrwvb+wg/8cQH8txySsEshJ1+inc9Kd/6p+aCZo3tkb2oAwmdGebr lU7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@paul-moore-com.20150623.gappssmtp.com header.s=20150623 header.b="2Q/o9vWA"; 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 r7-v6si114658pgq.675.2018.06.19.10.47.39; Tue, 19 Jun 2018 10:48:05 -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="2Q/o9vWA"; 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 S967052AbeFSRq4 (ORCPT + 99 others); Tue, 19 Jun 2018 13:46:56 -0400 Received: from mail-lf0-f46.google.com ([209.85.215.46]:32846 "EHLO mail-lf0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966650AbeFSRqz (ORCPT ); Tue, 19 Jun 2018 13:46:55 -0400 Received: by mail-lf0-f46.google.com with SMTP id y20-v6so824959lfy.0 for ; Tue, 19 Jun 2018 10:46:54 -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=sdMe0drgRtpCioWKRZdDc4HRisfnQZ03Ti9KNXMG3Y4=; b=2Q/o9vWAbsEypiGIjaeUEinJjIcucUrvUDLKl//g1oC8jo3Hlk5pdwKt5pIKCpFxMf Pyod9577zY8msFwUwcxZmUaXNlyK35FswwAoj4CfOE9/JP6oVi5kKreDg924Ft4tugIv GMp1dw0aJhN4/LgeUKwW7ZFKtfr5HTZosZ2IUhnB+dv9UiaOqr6uvdn3O7sdqGf6yhXx kmmIfZ2PpYzR9EVUdaAMFGJrwA0AeK6KfZs+9exASeIMO6X9ZYzgLeWyPT04qqvoj66c Gu0o/QdUp7zKIjlFrZz/opKx3koPBjNNdPOpVDzl3bKbh5GNRBYX1XE7RnYjGKSnVHBP 7kVg== 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=sdMe0drgRtpCioWKRZdDc4HRisfnQZ03Ti9KNXMG3Y4=; b=EVlRWv1g3MXC+c3foaKgoZYNIbbC8RCoXVpm/bCXAq31w9tbu9igvsyG/eHY15+zE5 UyWzJgciAZKObUbGhzBGFRLFJthEWbRd8hzeMgTd2YfytyxohZN5HsUenSyzva1f/If3 C+PdtkwJGHQWbuiutTLIhTsJWtPlCHwF1B78nCFSRjZLq3uyVlqz1IIjVB9Y4MrogAxc M+M9ND3iFH1jboT8bnmqU7Czngr+OEzNcsu/+2hPQR4TSFQCAF7KILkcYE5rGvM7jEMz L/ufr9Z5ry7d6CDB513rKJcXT/RVPO23lrynP0vV7Brk3pnjMlyYKrHtJZlhW8NWgpzm pbqA== X-Gm-Message-State: APt69E1jkOcCVXYPO2n0+73gNks4tHB5cSEUgzQA9TrTqWon8CBtwCJW QQUme4oTwnO6W76BtiH4kSBfLSJJcZ5JRFbNyfkO X-Received: by 2002:a19:a892:: with SMTP id r140-v6mr10566825lfe.39.1529430413806; Tue, 19 Jun 2018 10:46:53 -0700 (PDT) MIME-Version: 1.0 References: <20180612080912.7827-1-peter.enderborg@sony.com> <20180612080912.7827-12-peter.enderborg@sony.com> In-Reply-To: <20180612080912.7827-12-peter.enderborg@sony.com> From: Paul Moore Date: Tue, 19 Jun 2018 13:46:42 -0400 Message-ID: Subject: Re: [PATCH 11/13] selinux: Cleanup printk logging in netif 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/netif.c | 11 ++++------- > 1 file changed, 4 insertions(+), 7 deletions(-) Merged, thanks. > diff --git a/security/selinux/netif.c b/security/selinux/netif.c > index ac65f7417413..8c738c189942 100644 > --- a/security/selinux/netif.c > +++ b/security/selinux/netif.c > @@ -145,9 +145,8 @@ static int sel_netif_sid_slow(struct net *ns, int ifindex, u32 *sid) > > dev = dev_get_by_index(ns, ifindex); > if (unlikely(dev == NULL)) { > - printk(KERN_WARNING > - "SELinux: failure in sel_netif_sid_slow()," > - " invalid network interface (%d)\n", ifindex); > + pr_warn("SELinux: failure in %s(), invalid network interface (%d)\n", > + __func__, ifindex); > return -ENOENT; > } > > @@ -177,10 +176,8 @@ static int sel_netif_sid_slow(struct net *ns, int ifindex, u32 *sid) > spin_unlock_bh(&sel_netif_lock); > dev_put(dev); > if (unlikely(ret)) { > - printk(KERN_WARNING > - "SELinux: failure in sel_netif_sid_slow()," > - " unable to determine network interface label (%d)\n", > - ifindex); > + pr_warn("SELinux: failure in %s(), unable to determine network interface label (%d)\n", > + __func__, ifindex); > kfree(new); > } > return ret; > -- > 2.15.1 > -- paul moore www.paul-moore.com