lkml.org 
[lkml]   [2008]   [Jan]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [x86] kernel/audit.c cleanup according to checkpatch.pl
Cyrill Gorcunov wrote:
> [=?ISO-8859-1?Q?J=F6rn_Engel_ - Thu, Jan 03, 2008 at 12:29:57PM +0100]
> | On Thu, 3 January 2008 14:19:25 +0300, Cyrill Gorcunov wrote:
> | > @@ -232,7 +232,8 @@ void audit_log_lost(const char *message)
> | >
> | > if (print) {
> | > printk(KERN_WARNING
> | > - "audit: audit_lost=%d audit_rate_limit=%d audit_backlog_limit=%d\n",
> | > + "audit: audit_lost=%d audit_rate_limit=%d "
> | > + "audit_backlog_limit=%d\n",
> | > atomic_read(&audit_lost),
> | > audit_rate_limit,
> | > audit_backlog_limit);
> |
> | This hunk is a bit questionable. It can easily deceive a reader to
> | assume two seperate lines printed out and sometimes defeats grepping
> | for printk output to find the code generating the message.
> |
> | Rest looks good to me.
> |
> | Jörn
> |
> | --
> | He that composes himself is wiser than he that composes a book.
> | -- B. Franklin
> |
>
> indeed.
>
> here is updated one (with these part removed)

Instead of removing that part completely, why not print this:
"audit: lost=%d rate_limit=%d backlog_limit=%d\n"

In that line there were too many 'audit's IMHO, and if someone wants to
grep 'audit_lost=' he still can, 'audit:.*lost=' or something like that..

tom
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2008-01-03 13:13    [W:0.070 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site