Re: checkpatch and kernel/sched.c

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andrew Morton <akpm@...>
Cc: Ingo Molnar <mingo@...>, Andy Whitcroft <apw@...>, <linux-kernel@...>
Date: Tuesday, October 2, 2007 - 12:34 am

On Mon, Oct 01, 2007 at 12:30:07AM -0700, Andrew Morton wrote:

Well, I think that we could do something like this :

#define KERN_CONT ""
...
	printk(KERN_ERR "foo");
	<100 lines of whatever>
	printk(KERN_CONT "bar\n");

It would indicate the author's *intent* which is to continue a line which
has already been started. It would both permit us to remove false positives
from automated scripts, and to read the code more easily. And this is not a
big constaint for the author, given that such constructs are quite rare.

Regards,
Willy

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: checkpatch and kernel/sched.c, Ingo Molnar, (Mon Oct 1, 2:44 am)
Re: checkpatch and kernel/sched.c, Andrew Morton, (Mon Oct 1, 3:30 am)
Re: checkpatch and kernel/sched.c, Willy Tarreau, (Tue Oct 2, 12:34 am)
[patch] printk: add KERN_CONT annotation, Ingo Molnar, (Tue Oct 2, 1:18 am)
Re: [patch] printk: add KERN_CONT annotation, Andrew Morton, (Thu Oct 4, 4:43 pm)
Re: [patch] printk: add KERN_CONT annotation, Ingo Molnar, (Thu Oct 4, 4:52 pm)
Re: [patch] printk: add KERN_CONT annotation, Joe Perches, (Tue Oct 2, 11:41 am)
Re: [patch] printk: add KERN_CONT annotation, Jan Engelhardt, (Tue Oct 2, 11:45 am)
Re: [patch] printk: add KERN_CONT annotation, Joe Perches, (Tue Oct 2, 12:03 pm)
Re: [patch] printk: add KERN_CONT annotation, Jan Engelhardt, (Tue Oct 2, 12:07 pm)
Re: checkpatch and kernel/sched.c, Andy Whitcroft, (Mon Oct 1, 8:34 am)
Re: checkpatch and kernel/sched.c, Ingo Molnar, (Mon Oct 1, 6:44 am)
Re: checkpatch and kernel/sched.c, Ingo Molnar, (Mon Oct 1, 6:37 am)
Re: checkpatch and kernel/sched.c, Sam Ravnborg, (Mon Oct 1, 3:50 am)
Re: checkpatch and kernel/sched.c, Avi Kivity, (Mon Oct 1, 3:48 am)
Re: checkpatch and kernel/sched.c, Andrew Morton, (Mon Oct 1, 3:39 am)
Re: checkpatch and kernel/sched.c, Ingo Molnar, (Mon Oct 1, 6:39 am)