Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964939AbVJZVYF (ORCPT ); Wed, 26 Oct 2005 17:24:05 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S964941AbVJZVYE (ORCPT ); Wed, 26 Oct 2005 17:24:04 -0400 Received: from smtp04.auna.com ([62.81.186.14]:32923 "EHLO smtp04.retemail.es") by vger.kernel.org with ESMTP id S964939AbVJZVYD (ORCPT ); Wed, 26 Oct 2005 17:24:03 -0400 In-Reply-To: <9a8748490510260823s681a4d82k5efa5734486eda85@mail.gmail.com> References: <20051026042827.GA22836@havoc.gtf.org> <200510261704.15366.ak@suse.de> <9a8748490510260823s681a4d82k5efa5734486eda85@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v734) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Cc: netdev@vger.kernel.org Content-Transfer-Encoding: 7bit From: "J.A. Magallon" Subject: Re: [PATCH] kill massive wireless-related log spam Date: Wed, 26 Oct 2005 23:23:58 +0200 To: Linux-Kernel X-Mailer: Apple Mail (2.734) X-Auth-Info: Auth:PLAIN IP:[83.138.221.146] Login:jamagallon@able.es Fecha:Wed, 26 Oct 2005 23:23:59 +0200 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1039 Lines: 41 On 2005.10.26, at 17:23, Jesper Juhl wrote: > On 10/26/05, Andi Kleen wrote: > >> On Wednesday 26 October 2005 06:28, Jeff Garzik wrote: >> >> >>> Change this to printing out the message once, per kernel boot. >>> >> >> It doesn't do that. It prints it once every 2^32 calls. Also >> > > I noted that as well. How about just using something along the > lines of > > static unsigned char printed_message = 0; > if (!printed_message) { > printk(...); > printed_message++; > } Sorry, but why not the old good printed_message = 1 ?? What kind of microoptimization is that ? -- J.A. Magallon \ Software is like sex: wolverine \ It's better when it's free MacOS X 10.4.2, Darwin Kernel Version 8.2.0 - 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/