From: Xavier Subject: Re: [PATCH] Print NOUVEAU_NO_SWIZZLE and NOUVEAU_NO_TRANSFER messages only once Date: Mon, 4 Jan 2010 18:54:06 +0100 Message-ID: <91752841001040954j152cf10ep4b6e7fd32720a324@mail.gmail.com> References: <1262262260-3526-1-git-send-email-luca@luca-barbieri.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1262262260-3526-1-git-send-email-luca-Ukmtq+NC3rhBHFWNQifrYwC/G2K4zDHf@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: nouveau-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org Errors-To: nouveau-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org To: Luca Barbieri Cc: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org List-Id: nouveau.vger.kernel.org On Thu, Dec 31, 2009 at 1:24 PM, Luca Barbieri wrote: > Currently we are continuously spewing messages messages about these variables since we call debug_get_bool_option everytime we want to check their value > This is annoying, slows things down due to terminal rerendering and obscures useful messages. > This patch only calls debug_get_bool_option once and caches the result in a static variable. > --- I found this annoying too, on the nv30 that I don't use much. Thanks for the patch, it works nicely :)