Hello!
On 06/15/2012 10:08 AM, yafo lee wrote:
> Hi guys, I wanna covert linux's printk:
> printk(KERN_DEBUG "MAC address is multicast\n");
> to freebsd's print:
> printf("MAC address is multicast\n");
>
> By using:
> @@
> @@
> - printk
> + print
>
> I can get:
> printf(KERN_DEBUG "MAC address is multicast\n");
>
> But I don't want the macro "KERN_DEBUG", how can I remove it?
sed. Or perl. On the generated diff. That's what I would do as it is the
simplest solution.
bye
michael
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)