Re: [PATCH] kill massive wireless-related log spam

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 2005.10.26, at 17:23, Jesper Juhl wrote:

On 10/26/05, Andi Kleen <[email protected]> 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 <jamagallon()able!es>   \          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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux