Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933197Ab2KEPi6 (ORCPT ); Mon, 5 Nov 2012 10:38:58 -0500 Received: from twin.jikos.cz ([89.185.236.188]:54357 "EHLO twin.jikos.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932722Ab2KEPi4 (ORCPT ); Mon, 5 Nov 2012 10:38:56 -0500 Date: Mon, 5 Nov 2012 16:38:35 +0100 From: David Sterba To: Julia Lawall Cc: Chris Mason , kernel-janitors@vger.kernel.org, linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 13/16] fs/btrfs: use WARN Message-ID: <20121105153835.GJ3102@twin.jikos.cz> Reply-To: dave@jikos.cz Mail-Followup-To: Julia Lawall , Chris Mason , kernel-janitors@vger.kernel.org, linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org References: <1351940317-14812-1-git-send-email-Julia.Lawall@lip6.fr> <1351940317-14812-14-git-send-email-Julia.Lawall@lip6.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1351940317-14812-14-git-send-email-Julia.Lawall@lip6.fr> User-Agent: Mutt/1.5.21 (2011-07-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 759 Lines: 26 On Sat, Nov 03, 2012 at 11:58:34AM +0100, Julia Lawall wrote: > From: Julia Lawall > > 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/) > > // > @@ > expression list es; > @@ > > -printk( > +WARN(1, > es); > -WARN_ON(1); > // > > Signed-off-by: Julia Lawall Reviewed-by: David Sterba -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/