Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp5459635imm; Tue, 19 Jun 2018 10:40:57 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJ95e2CTqca/vhvB4xwFOgnW7bvtHNHiOMdCGhsNZS3ME+zTBk336y0Yus18c4wb3nKk1Xu X-Received: by 2002:a17:902:88:: with SMTP id a8-v6mr19569591pla.156.1529430057841; Tue, 19 Jun 2018 10:40:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529430057; cv=none; d=google.com; s=arc-20160816; b=ingDctniaQgW6a9RCgDNvnVw5lUIsKm95mthSMDzXGfmdDjLGBZdmCBuDoNlOaUWEE 8Ts3N3dquiVuxf3jvAgoZQpO6w08zp53No9klqUIdIp4A29bc4af9YDDfittiRylhfqC soXG43GNenIHZPF2Y24vKaZ2H+fIc22yMmuzbW5/IIMfGyokpJiDGpVaa8bQ0HKj6OLd rdKIJFmDiHgfKLOO7ZjBcFBw6Z/4VrrQAO3FAZoL5oQwbINGQpJ46BTBrSAEWDgj36tO cjE4oVkpts8t6R7RCOrp6KFlxN+UqvFAKtnnNbfh/PuuoNIUp4oVCy7iSJaQZQWyoVzq EIBg== 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=HTymQ1SN1QmY/gWX3TMK1zJIJD4uE+vCN3JHSml0Jhk=; b=tm2tYOWMuIjY9XJNNbXeP9JGNbCkANr/8NkiI3t+HHD1X71teA0pL/IUSuM9Ga+8W4 wrg/QSxVLo4OPOdq/C/tqAWRKemmonSmHeGgiCpZu1kL7qEofhR4ubycMY78Nafb92fQ 0BvXRvooIuhNEluIfhvu/TRkLUhJGlNfcEYrTrSqoRUaEbRDbR7/EJY/84EAk090OoNs gaSzbC8r7BSTK6S/SjRpXH9Q/H6VPqj6Vv9FrcEB8pBs88psLA2Z2SQWzMnXJSdAFPEM ItJAc1ErAoOLw1LF4+d86VNb9qcMiv1IS2GU9XhKccorNqnrNIR9Cxsm+lZGy5v13xYi 8KxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@paul-moore-com.20150623.gappssmtp.com header.s=20150623 header.b=qMObiqJL; 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 o4-v6si200125plk.321.2018.06.19.10.40.43; Tue, 19 Jun 2018 10:40:57 -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=qMObiqJL; 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 S1030272AbeFSRkG (ORCPT + 99 others); Tue, 19 Jun 2018 13:40:06 -0400 Received: from mail-lf0-f50.google.com ([209.85.215.50]:34204 "EHLO mail-lf0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966650AbeFSRkF (ORCPT ); Tue, 19 Jun 2018 13:40:05 -0400 Received: by mail-lf0-f50.google.com with SMTP id e13-v6so475112lfc.1 for ; Tue, 19 Jun 2018 10:40:04 -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=HTymQ1SN1QmY/gWX3TMK1zJIJD4uE+vCN3JHSml0Jhk=; b=qMObiqJL04E/VGLIB0S0AU51rdXRRqf5+J2F4PT1dQNjNFhfvmyRoha64nNh9NfOTj RmQQVIJqGDGDoazAyTnrs1Z7DD1YQKNbA5hQ3AwIkE3HrYS1xDob/7siEJnnnQ/rMdvZ JMjlWFlwo9P3yBBPlRae89vL0YLJ9APjdj6Q/1dV73UOZ2xwJKsLC3njKh0LLxDTBky0 fTvYpw1aStnmeaSxXKlA2pWVPFhyY7HpFKAXB7q9KHuhm/HMqkzBxuYj5Rxm3Yv/qbIx /f/3J/5icummcdQDFDIA1lvaKou/YtHHWcmTLagwih4P/VW2ZbLUFIo/ZUnzKfu3K8PL 7F/Q== 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=HTymQ1SN1QmY/gWX3TMK1zJIJD4uE+vCN3JHSml0Jhk=; b=b64lowfpkBHROiVEkDyzqHS2JKRbc0HPA7bmpkTIBFyruHyYEzG4lKMynNf6VJ2jsk f6ss1z8Ixo2boW8oRRK5cVEI4Oq8nOUJRUaBc9CPQ6zzMowhUa2B1jGVdDXvi9iuCvLZ Qto/94fLiLIY0+n+Urmbc1K/Cqi5AKa6kDs7YT4nWPzwIB7eVkACOPPdn8fJZEfEpvFK 5FiWuJgwvTKBtppX8oaPemoWdD/AF7rOLMks6YrCobL/YclmuO4FSBuYZZj4CdxAUpqJ p5iwLN+EGSsaLYRrFPmRYFIF6381Ada+XW8+OPu6965OH66/Twz3ECDGO9HNK1Dg/4t3 dTzg== X-Gm-Message-State: APt69E1EBa4j5uYC/1QGk/v0IqXayCtJIMAvlpLjmfoM8rAh5BRIPHnx SLryEZsFlBlCLccH/uPMVQpWFkAaK/a56aRs1I/I X-Received: by 2002:a2e:18b:: with SMTP id f11-v6mr11734477lji.83.1529430003634; Tue, 19 Jun 2018 10:40:03 -0700 (PDT) MIME-Version: 1.0 References: <20180612080912.7827-1-peter.enderborg@sony.com> <20180612080912.7827-10-peter.enderborg@sony.com> In-Reply-To: <20180612080912.7827-10-peter.enderborg@sony.com> From: Paul Moore Date: Tue, 19 Jun 2018 13:39:52 -0400 Message-ID: Subject: Re: [PATCH 09/13] selinux: Cleanup printk logging in sidtab 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/ss/sidtab.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) Merged, thanks. > 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 > -- paul moore www.paul-moore.com