Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp5034909imm; Tue, 12 Jun 2018 01:11:47 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJmuhdEy0iFub9w/fej8CjfOauRmck44mf3P5P2UVPy3WlGEtccYC1V/m+dgmUFk5AlRz2X X-Received: by 2002:a62:b201:: with SMTP id x1-v6mr2742422pfe.189.1528791106980; Tue, 12 Jun 2018 01:11:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528791106; cv=none; d=google.com; s=arc-20160816; b=P4pCUyDHtRbK6BJghKy+ooIf7dvqDlhgAiZCJpz0pRDGBi5UZo4CDQRNoJVFwy7lsZ 4phPzin9qx2IEZxY0EeKIYBmSs/NvPQh9yfMxlvgHgPLgmln22g8p98//zIrXP7Y4bUm aFg2b/bji0HNrHUKsjOAVwS3h5fejNGMyiBboes+n/TPQs0XPi2gb7+I0f5IYsadCFk0 OpAs4IQkcmo6XnI1ZTc2fQXg4vYqO+eWCSX78Ryu9r+N/nRaF5G5QxMW2GcxEve/azeR TuooceEQWa4UsoQGIT7s/0U6rLIeKDJ+f3EWFAqVi/iBQ8hOody1urhbhENXnQgWThQv 9e9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:to:from:arc-authentication-results; bh=vTHgI+7CYYajyCZyeMNKSfc28Ts0J4TmZb+6aVqilCk=; b=LiQlAyG3uByNziNU3Ykxsst2nwrxoCaG8wiFCwF3BTQ7BaqeQXiL4cA9XAs9G556of CS92zjmPX56g2m2QpsYPPchP7gHDb+jcywWz00v8nbYCZAuhDLPbMzG4GzW7w/cUbaeh XfMgtmRnGly0I4sO78BbV1LeSLE33qDkyBG8Hq33Cf0vAWIkYwG372oSvdLopTEBtB41 lT1tTK4CYx6+KU0fseJClRkMONjMy3f67VVbeFy0LccLGL3wWiVIh1xkcGhbBivsLA6m 7ltkA59jXsyUjEp1yS+3JxBD1/z93kAvHTg2KBtX7XDDaKeFfa0gpq9qLHKpXTO1W//7 7CuQ== ARC-Authentication-Results: i=1; mx.google.com; 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 s4-v6si297515pfs.157.2018.06.12.01.11.32; Tue, 12 Jun 2018 01:11: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; 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 S933894AbeFLIKI (ORCPT + 99 others); Tue, 12 Jun 2018 04:10:08 -0400 Received: from seldsegrel01.sonyericsson.com ([37.139.156.29]:6074 "EHLO SELDSEGREL01.sonyericsson.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933789AbeFLIKB (ORCPT ); Tue, 12 Jun 2018 04:10:01 -0400 From: Peter Enderborg To: , Paul Moore , Stephen Smalley , Eric Paris , James Morris , Daniel Jurgens , Doug Ledford , , , , "Serge E . Hallyn" Subject: [PATCH 11/13] selinux: Cleanup printk logging in netif Date: Tue, 12 Jun 2018 10:09:10 +0200 Message-ID: <20180612080912.7827-12-peter.enderborg@sony.com> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180612080912.7827-1-peter.enderborg@sony.com> References: <20180612080912.7827-1-peter.enderborg@sony.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) 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