Re: [PATCH] selinux: Use pr_fmt to prefix "SELinux: "

2018-07-03 Thread Joe Perches
On Mon, 2018-07-02 at 22:41 -0400, Paul Moore wrote: > > It still applies today to -next. > > It doesn't apply cleanly to the selinux/next branch, I believe because > there are other trees which have made changes under security/selinux/* > (I believe there was some fs related work from David

Re: [PATCH] selinux: Use pr_fmt to prefix "SELinux: "

2018-07-03 Thread Joe Perches
On Mon, 2018-07-02 at 16:51 -0400, Paul Moore wrote: > On Wed, Jun 20, 2018 at 2:39 AM Joe Perches wrote: > > pr_fmt can be used with the pr_ macros to prefix > > arbitrary content to logging messages. > > > > So add '#define pr_fmt(fmt) "SELinux: " fmt' to selinux files > > that use pr_ and

Re: [PATCH] selinux: Use pr_fmt to prefix "SELinux: "

2018-07-02 Thread Paul Moore
On Mon, Jul 2, 2018 at 10:10 PM Joe Perches wrote: > On Mon, 2018-07-02 at 21:15 -0400, Paul Moore wrote: > > On Mon, Jul 2, 2018 at 5:31 PM Joe Perches wrote: > > > On Mon, 2018-07-02 at 16:51 -0400, Paul Moore wrote: > > > > On Wed, Jun 20, 2018 at 2:39 AM Joe Perches wrote: > > > > > pr_fmt

Re: [PATCH] selinux: Use pr_fmt to prefix "SELinux: "

2018-07-02 Thread Paul Moore
On Mon, Jul 2, 2018 at 5:31 PM Joe Perches wrote: > On Mon, 2018-07-02 at 16:51 -0400, Paul Moore wrote: > > On Wed, Jun 20, 2018 at 2:39 AM Joe Perches wrote: > > > pr_fmt can be used with the pr_ macros to prefix > > > arbitrary content to logging messages. > > > > > > So add '#define

Re: [PATCH] selinux: Use pr_fmt to prefix "SELinux: "

2018-07-02 Thread Paul Moore
On Wed, Jun 20, 2018 at 2:39 AM Joe Perches wrote: > pr_fmt can be used with the pr_ macros to prefix > arbitrary content to logging messages. > > So add '#define pr_fmt(fmt) "SELinux: " fmt' to selinux files > that use pr_ and remove embedded "SELinux: " prefixes > from the format strings. > >

[PATCH] selinux: Use pr_fmt to prefix "SELinux: "

2018-06-20 Thread Joe Perches
pr_fmt can be used with the pr_ macros to prefix arbitrary content to logging messages. So add '#define pr_fmt(fmt) "SELinux: " fmt' to selinux files that use pr_ and remove embedded "SELinux: " prefixes from the format strings. Miscellanea: o Coalesce formats and realign arguments o Add