On Sat, Nov 03, 2012 at 11:58:34AM +0100, Julia Lawall wrote: > From: Julia Lawall <julia.law...@lip6.fr> > > Use WARN rather than printk followed by WARN_ON(1), for conciseness. > > A simplified version of the semantic patch that makes this transformation > is as follows: (http://coccinelle.lip6.fr/) > > // <smpl> > @@ > expression list es; > @@ > > -printk( > +WARN(1, > es); > -WARN_ON(1); > // </smpl> > > Signed-off-by: Julia Lawall <julia.law...@lip6.fr> Reviewed-by: David Sterba <dste...@suse.cz> -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Re: [PATCH] drivers/misc/kgdbts.c: rem... Julia Lawall
- Re: [PATCH] drivers/misc/kgdbts.c... Arnd Bergmann
- Re: [PATCH] drivers/misc/kgdb... Julia Lawall
- Re: [PATCH] drivers/misc/kgdb... Arnd Bergmann
- [PATCH 12/16] fs/logfs/gc.c: use WARN Julia Lawall
- [PATCH 16/16] drivers/infiniband/hw/nes: use WARN Julia Lawall
- [PATCH 15/16] drivers/parisc/pdc_stable.c: use WARN Julia Lawall
- [PATCH 4/16] drivers/usb/wusbcore: use WARN Julia Lawall
- [PATCH 14/16] drivers/ssb/main.c: use WARN Julia Lawall
- [PATCH 13/16] fs/btrfs: use WARN Julia Lawall
- Re: [PATCH 13/16] fs/btrfs: use WARN David Sterba
- [PATCH 9/16] fs/ext4/indirect.c: use WARN Julia Lawall
- [PATCH 8/16] drivers/infiniband/hw/cxgb3/iwch_cm.c: use... Julia Lawall
- [PATCH 7/16] drivers/scsi/gdth.c: use WARN Julia Lawall
- [PATCH 6/16] drivers/infiniband/hw/cxgb4/cm.c: use WARN Julia Lawall
- [PATCH 2/16] fs/hfsplus/bnode.c: use WARN Julia Lawall
- Re: [PATCH 2/16] fs/hfsplus/bnode.c: use WARN Vyacheslav Dubeyko
- [PATCH 1/16] drivers/gpu/drm/drm_cache.c: use WARN_ONCE Julia Lawall