Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp5337092imm; Tue, 19 Jun 2018 08:49:38 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIXviwwptl4s+1Br8K/Q1X+xJQkHshN/JKPzxKNUQu0LaFNbvoWhdxy+t4YRDTEE9y8I17k X-Received: by 2002:a62:d2c3:: with SMTP id c186-v6mr18400920pfg.44.1529423378431; Tue, 19 Jun 2018 08:49:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529423378; cv=none; d=google.com; s=arc-20160816; b=SGDbQCWvKTXjsL1bKy5LWagfM9JEHRsB7zXc3As9yf2SueE9NT8heUfy/1kujAZwn/ MEJvZkOzSCnpk9WZV8bO5IPcqMQXSQxvIJEwTHX2kzpwLFn9I4wQf8ol541KHPhrKkW4 d5OFFfMsoNcYtiFPqNe5RRscc/IYqWZQ8h12Y4aWVzYbOqtBMuGxSQRcE+XglhJUWZB/ nL9gBz6JHuDQ3kJZ2cUrflC46NL/9IeOt3jmWsEzkyY28mV780ti6LYusx3SxDeCMn/P DCOqrW8B8R0lew9r7WbyQ7XsO7xsAOo5/hEKYrmvMSoMEw1iraXX68fMk5/Uy61doi/w 1KDg== 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=NcNvGnJWxZGTUW2LZ1kSMUr+sYWSKDJ8qJqbrIooLbs=; b=yA0L0r7uQDs/gYs7JowcU+3SMuSxCnsXDimeuc/9ElskDqOVUteprkvWt0LI9GrVTt OD2CG+7RvwP+xd6vi2GG/3y2B/eF+eyuGBMu0ByO6JQvoJkREM0q5Yjvx0ragh5QBo9F cBVORvY5lBKsAr0oiEtfmJhpJ4Md3FjNeHrE4QlOnYJBJwbGXu2iM+V3I5sX1mcE6Vi/ /aWppj+PXKBhY47TclN+onWmjo1ZKed2tGadGmQY0nR8L0WclsP+MfgDxXgTZiR8I6e6 216xtrowv2w7H3b+yK0mcGVMJ2ARjTP1LMZ7uvMU22XUlTAoBnJ0sPmEZZk0nYbidq3/ geug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@paul-moore-com.20150623.gappssmtp.com header.s=20150623 header.b=SmleVhf+; 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 b9-v6si3009plx.286.2018.06.19.08.49.13; Tue, 19 Jun 2018 08:49:38 -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=SmleVhf+; 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 S966740AbeFSPqh (ORCPT + 99 others); Tue, 19 Jun 2018 11:46:37 -0400 Received: from mail-lf0-f65.google.com ([209.85.215.65]:41729 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966406AbeFSPqf (ORCPT ); Tue, 19 Jun 2018 11:46:35 -0400 Received: by mail-lf0-f65.google.com with SMTP id d24-v6so205961lfa.8 for ; Tue, 19 Jun 2018 08:46:35 -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=NcNvGnJWxZGTUW2LZ1kSMUr+sYWSKDJ8qJqbrIooLbs=; b=SmleVhf+f7iWkJ4+eAjPgniPjiFLpUaPz/ZOZXikUI95ol9H2HoA2StCFGENh4MZL8 hezY22w/XFVAPyZV/LrwWPOTF23NR/DpMLTHO+srWo8DsH0mQZc1AN9Qw90xQlhwp10S dO1DZmWOR1INOki4n7Dab0dzhftMkP55LNFeK0tMEfRxPt4jMG1pNAxKiOsFg/glLe2H f0c98teLiYlrU9OpaU1Ukfyn8GrugruJohzKPjLBoerwjBoy4y8DqD78R3e/K+C6UJuE cqTnr/QAHHerV9IDOoD4xviLi8xoyu6mQLMDq0tyEhPfeFxrhtTdstIOdUbp1cZpjaDS BozQ== 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=NcNvGnJWxZGTUW2LZ1kSMUr+sYWSKDJ8qJqbrIooLbs=; b=djIT2mopEY6rK8cErsGwpCymFd8Q07jq2/QBdsCgNH2H1YfSY4Y2VaX3xmmQn+EtQc nn0a2SwbSNaawkrtmxLmKs+HrGnB/EhV0qGmtloRcrXRY0VJoq1P2UooGtL99cY17lXx eHsipQVqv3mxNXQEF59cNnlu2AwkkBN3irThIDWn/w4LY8bNGGzNixQyMPswT8jUlwNk Ur5MWIeWQCGw9VKUxzvTU0XdPFj5jSDnhu+6mxLlrq10zHVNR8MEljOsnwM+m3Alf0PG D+XCz/Flb11Xg2fEXSZYDvQmaamOOSB/jfcRPGx5DpERF7hvGzi1wbFuGdLtZEmtpJt2 3Cuw== X-Gm-Message-State: APt69E01O/NJMrTIQEkRUh3zp/b/YGQGc2u29siiTUI6R4tOjrxr5y0x 2T7qOcBRkp4boFXLp+jeyHNXN5XfILE3S7ZcFQEj X-Received: by 2002:a19:a892:: with SMTP id r140-v6mr10323156lfe.39.1529423194391; Tue, 19 Jun 2018 08:46:34 -0700 (PDT) MIME-Version: 1.0 References: <20180612080912.7827-1-peter.enderborg@sony.com> <20180612080912.7827-2-peter.enderborg@sony.com> In-Reply-To: From: Paul Moore Date: Tue, 19 Jun 2018 11:46:23 -0400 Message-ID: Subject: Re: [PATCH 01/13] selinux: Cleanup printk logging in conditional To: peter.enderborg@sony.com Cc: joe@perches.com, 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 Wed, Jun 13, 2018 at 2:23 AM peter enderborg wrote: > On 06/12/2018 04:38 PM, Joe Perches wrote: > > On Tue, 2018-06-12 at 10:09 +0200, Peter Enderborg wrote: > >> Replace printk with pr_* to avoid checkpatch warnings. > > I believe it would be nicer to remove the > > "SELinux: " prefix embbeded in each format > > and use a specific > > > > #define pr_fmt(fmt) "SELinux: " fmt > > > > to automatically prefix these formats. > > I cant argument about that, however some of the warnings and debug prints in this set does not have this > so it will then change the actual output. (And I also think that they should have a the prefix, but I don't > know why they don't) So I am not sure if it appropriate for a cleanup patch, it supposed to have no functional change. As others have mentioned, I think this patch is still a step forward so I'm going to go ahead and merge it; thanks Peter. As far as the prefix, or lack of, is concerned, that's probably an oversight that we should fix at some point, but we would need to look at each instance to verify. -- paul moore www.paul-moore.com