OK, I give up.
I think sed 's/KERN_DEBUG//g' is simple enough.
---------------------------------------------------------
From: Julia Lawall
Sent: Friday, June 15, 2012 7:10 PM
To: Michael Stefaniuc
Cc: [email protected]
Subject: Re: [Cocci] How to remove the calls to a macro
On Fri, 15 Jun 2012, Michael Stefaniuc wrote:
On 06/15/2012 12:47 PM, Julia Lawall wrote:
> On Fri, 15 Jun 2012, Michael Stefaniuc wrote:
>> But both approaches need testing. And I'm waaay too lazy^Wpragmatic to
>> do it right in coccinelle. A "%g/^+/ s/\s*KERN_DEBUG\s*//" is far
>> faster
>> to type into vim while looking at the diff.
>
> printk has to become printf too.
Uh? The above vim search and replace works only on the diff generated by
the coccinelle rule to replace printk with printf.
OK. I thought one would want a permanent set of rules, so one would put
the sed/perl line in a file...
julia
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)