From: Takashi Iwai Subject: Re: [PATCH 30/31] ASoC: Replace BUG() with snd_BUG() Date: Wed, 06 Nov 2013 11:04:14 +0100 Message-ID: References: <1383673218-18405-1-git-send-email-tiwai@suse.de> <1383673218-18405-31-git-send-email-tiwai@suse.de> <20131106093947.GD11602@sirena.org.uk> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id E86FA261635 for ; Wed, 6 Nov 2013 11:04:14 +0100 (CET) In-Reply-To: <20131106093947.GD11602@sirena.org.uk> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Mark Brown Cc: alsa-devel@alsa-project.org, Liam Girdwood List-Id: alsa-devel@alsa-project.org At Wed, 6 Nov 2013 09:39:47 +0000, Mark Brown wrote: > > [1 ] > On Tue, Nov 05, 2013 at 06:40:17PM +0100, Takashi Iwai wrote: > > BUG() used in the driver is just to spit the stack trace on buggy > > points, not really needed to stop the whole operation. For that > > purpose, it'd be more convenient to use snd_BUG() instead. > > snd_BUG() doesn't look like it's quite doing what was desired here - > it's conditional on SND_DEBUG but these are all for really bad problems > which should never happen and will generally cause serious problems if > they don't happen. It seems better to replace them (or at least most of > them) with the direct WARN() instead. OK, I don't mind either case, so I'll resend the patches fixing BUG() (although I myself prefer a possibility to remove such debug things for the production systems...) Takashi