Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp5034946imm; Tue, 12 Jun 2018 01:11:48 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJdH23B1cLa1+9KjRzkDWZdVscM4b7/TBHLviIK6Y+HAEnAdP8JVDCdf49SEY3g0VTnfo7e X-Received: by 2002:a63:85c8:: with SMTP id u191-v6mr2196118pgd.300.1528791108754; Tue, 12 Jun 2018 01:11:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528791108; cv=none; d=google.com; s=arc-20160816; b=dKYOvpc3gsuBZFsoLfi6SMDgVBzRW4QBYgg0OZMiWOvdXqYAhMN5WqWSgcoEZszlWN vSm6QvFShSIRoKdPy9joGCGawTLbZKbO2Lfpx0pNs6eiTLnVnwbdxmKnNMvKMuJ7u1PP /PNC8GT5E6UDJxipxsVrsPuXIRsQ2AZ5tcQVLl6A6WvIps8XgfvowGfjjd8l+bV8m8qW V4MxyMKRaCvfpxzCw5JVVayCBL4NlapoXDxn2p4pE3ZZNiV9jwRdXAbqafyv/XCUakNi UIEXWTeCj/P8aUnKlZkrUfJTHl2vIMI8qJUd3NAgElLEh7i+nspibQsMq4FNQun1Ckkr 4Ljg== 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=ywAjC0IXtdJHOXCAF1hTZp0k9LJuhhiCfLj+QzywzwY=; b=gQ1hEVKc9dEYNBEzXhrUdo5dtyI2fZdk8POcde1xuXR7RNlWHEHx9mw6SZHifi+xmW 1e3KzIDx5PDUzoHa0bZCVVjqwsxiwQKZSKg4CV76EXd3Cy/ZQpQqV90UkaJzyDBFmW0o cMoxJCLnOHt8BuOYZyADkfUORxy3nK6fuDm8zsc5/sWMgNkygqdWqZzBBLNnnitvNQGB SyCspKjizjjgk9KlM7UeSDiiDcJP/Mvumjty+Yvn/DERlJ4pJlCRg1r+l4CgFsWso8Te RYyjffbQx8h8j7CDM/R3qUsrLKK8bSYxz+vNXwqqj8BfM0K+KvieBWA7ltTNecpSzD3z ERUw== 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 f5-v6si286885pgu.103.2018.06.12.01.11.34; Tue, 12 Jun 2018 01:11:48 -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 S933835AbeFLIKF (ORCPT + 99 others); Tue, 12 Jun 2018 04:10:05 -0400 Received: from seldsegrel01.sonyericsson.com ([37.139.156.29]:6076 "EHLO SELDSEGREL01.sonyericsson.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933802AbeFLIKB (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 13/13] selinux: Cleanup printk logging in netnode Date: Tue, 12 Jun 2018 10:09:12 +0200 Message-ID: <20180612080912.7827-14-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/netnode.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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