lkml.org 
[lkml]   [2010]   [Oct]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] checkpatch: allow single space before labels
From
Date
On Sun, 2010-10-17 at 12:38 -0700, Joe Perches wrote:
> On Sun, 2010-10-17 at 21:30 +0200, Peter Zijlstra wrote:
> > On Sun, 2010-10-17 at 09:54 -0700, Joe Perches wrote:
> > > There are a half dozen or so in sched.c
> >
> > Unlike some people, I've actually got something better to do than
> > whitespace patches.. they'll change next time the code in question needs
> > to change.
>
> It takes as much time to reply as to change them.
>
> perl -p -i -e 's/^ (\w+):/$1:/g' kernel/sched.c

If you're skilled with such things as perl I guess, me I always forget
what uses which version of regexps and need to try longer to get the
regex right that it would take to change a few lines by hand.

Anyway, I applied it to kernel/sched*.c, thanks!


\
 
 \ /
  Last update: 2010-10-17 21:51    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site