Re: [PATCH] net: Disambiguate kernel message

From: Ingo Molnar
Date: Tue Jan 31 2012 - 14:45:17 EST



* Arun Sharma <asharma@xxxxxx> wrote:

> + printk(KERN_INFO "TCP: too many orphaned "
> "sockets\n");

> + printk(KERN_INFO "TCP: out of memory. "
> + "Consider tuning tcp_mem\n");

> + printk(KERN_INFO "TCP: out of memory. "
> + "Consider tuning tcp_mem\n");
> + if (too_many_orphans && net_ratelimit())
> + printk(KERN_INFO "TCP: too many orphaned sockets\n");

A small detail: please don't line break user-visible strings in
mid sentence. Just keep the line long. Makes it much easier to
search for the source of a kernel message:

git grep "TCP: too many orphaned sockets"

Thanks,

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/