[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20110317200215.GA4084@redhat.com>
Date: Thu, 17 Mar 2011 16:02:15 -0400
From: Dave Jones <davej@...hat.com>
To: Steven Rostedt <rostedt@...dmis.org>
Cc: Linux Kernel <linux-kernel@...r.kernel.org>,
Andrew Morton <akpm@...ux-foundation.org>
Subject: Re: make checkpatch warn about memset with swapped arguments.
On Thu, Mar 17, 2011 at 03:36:45PM -0400, Steven Rostedt wrote:
> > + if ($line =~ /memset.*\,(\ |)(0x|)0(\ |0|)\);/) {
>
> Wouldn't this be a better regex:
>
> if ($line =~ /memset.*\,\s*(0x)?0\s*\)\s*;/)
I dunno, regexps are all gobble-de-gook to me. Why is it better ?
Dave
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists