Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp5036042imm; Tue, 12 Jun 2018 01:13:04 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKQkWgnLEZNTm2croJTzYA3F5yxRGtamge26GaoYpoicUZ3LCm05hFsB1hoibpx8anCYm35 X-Received: by 2002:a63:700e:: with SMTP id l14-v6mr2328064pgc.206.1528791183964; Tue, 12 Jun 2018 01:13:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528791183; cv=none; d=google.com; s=arc-20160816; b=k9V0oR2/skf0dbW3DBJoe3bteF4CNRcGlSUPUzRYGkb7SqwNNbutdCsJ4+lGx3CUiV c95UOERsEGFbMRZogkwfR4M/VPbFwgzA3O6+Zwwc6oZ7agEbpIOqIH2K5+ykzbL5gk9H hSuD6fYs+D1J9b4q0eJO+dLk04Aq1NLyZ7N1RaRHuTCm4Gden3phl5Uj5QYRdHYKh1s0 wxu7xs1aQxaZn/B3ZCDHvX8/jHom1wuHn6ymhIUBXQVxLJBdUSJflUqg4E8m7yu2VIcS NUA6girI50iE3otIcEBTM5wnoAqzLGgt8mBJlMP53YAYMeF/S/+rI+GkYjyRZoZnDOlu ztFQ== 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=5/kfZl+8vn1Btp+lmOJfqLZlSjghXraQzdkelDFiqmw=; b=VCvOhqR/0uzveay5Mu0+OV4HyHXvZR1rXQ5Uvo0o/wgtDSBFsevmYBLwAIBJYZyPbl z5xPtjGKeGDj2RKXoncQVfsB/vmnGStMoCkbpQMmO0fdWxH0xpv8WU/ZJO5lKAyHpSoP +jbmdhYt+1PmgmrM5EDrKdrhCbQFdsRVmw98FQ5I8P40Ba+u4qQtM+bOS5I6jc0I0nb1 GnsJBbaI69g/+3MAa8Eei7S6KW2J6O+dLczqiRlmPwaxXhhJLvlY8hO8ib67h+nD0H15 UvKjoLcIpqcI/C33CkKdCUjn1Eb7+ieGtVTNW0BKbH1KWGTmvcH4XMyXjP6/UJN1icNT HJZA== 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 i69-v6si262362pge.674.2018.06.12.01.12.49; Tue, 12 Jun 2018 01:13:03 -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 S933910AbeFLILH (ORCPT + 99 others); Tue, 12 Jun 2018 04:11:07 -0400 Received: from seldsegrel01.sonyericsson.com ([37.139.156.29]:6066 "EHLO SELDSEGREL01.sonyericsson.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933773AbeFLIJ7 (ORCPT ); Tue, 12 Jun 2018 04:09:59 -0400 From: Peter Enderborg To: , Paul Moore , Stephen Smalley , Eric Paris , James Morris , Daniel Jurgens , Doug Ledford , , , , "Serge E . Hallyn" Subject: [PATCH 09/13] selinux: Cleanup printk logging in sidtab Date: Tue, 12 Jun 2018 10:09:08 +0200 Message-ID: <20180612080912.7827-10-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/ss/sidtab.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/security/selinux/ss/sidtab.c b/security/selinux/ss/sidtab.c index 5be31b7af225..fd75a12fa8fc 100644 --- a/security/selinux/ss/sidtab.c +++ b/security/selinux/ss/sidtab.c @@ -214,8 +214,7 @@ int sidtab_context_to_sid(struct sidtab *s, } sid = s->next_sid++; if (context->len) - printk(KERN_INFO - "SELinux: Context %s is not valid (left unmapped).\n", + pr_info("SELinux: Context %s is not valid (left unmapped).\n", context->str); ret = sidtab_insert(s, sid, context); if (ret) @@ -253,7 +252,7 @@ void sidtab_hash_eval(struct sidtab *h, char *tag) } } - printk(KERN_DEBUG "%s: %d entries and %d/%d buckets used, longest " + pr_debug("%s: %d entries and %d/%d buckets used, longest " "chain length %d\n", tag, h->nel, slots_used, SIDTAB_SIZE, max_chain_len); } -- 2.15.1