Re: [PATCH] Coccinelle: Script to replace if and BUG with BUG_ON

2014-08-06 Thread Michal Marek
On 2014-08-05 20:16, Julia Lawall wrote: > > > On Tue, 5 Aug 2014, Michal Marek wrote: > >> On 2014-07-20 23:36, Himangi Saraogi wrote: >>> This script detects cases where BUG() follows an if condition on an >>> expression and replaces the if condition and BUG() with a BUG_ON having >>> the cond

Re: [PATCH] Coccinelle: Script to replace if and BUG with BUG_ON

2014-08-05 Thread Julia Lawall
On Tue, 5 Aug 2014, Michal Marek wrote: > On 2014-07-20 23:36, Himangi Saraogi wrote: > > This script detects cases where BUG() follows an if condition on an > > expression and replaces the if condition and BUG() with a BUG_ON having > > the conditional expression of the if statement as argument

Re: [PATCH] Coccinelle: Script to replace if and BUG with BUG_ON

2014-08-05 Thread Michal Marek
On 2014-07-20 23:36, Himangi Saraogi wrote: > This script detects cases where BUG() follows an if condition on an > expression and replaces the if condition and BUG() with a BUG_ON having > the conditional expression of the if statement as argument. > > Signed-off-by: Himangi Saraogi > Acked-by:

[PATCH] Coccinelle: Script to replace if and BUG with BUG_ON

2014-07-20 Thread Himangi Saraogi
This script detects cases where BUG() follows an if condition on an expression and replaces the if condition and BUG() with a BUG_ON having the conditional expression of the if statement as argument. Signed-off-by: Himangi Saraogi Acked-by: Julia Lawall --- scripts/coccinelle/misc/bugon.cocci |