Messages in this thread | | | Date | Thu, 11 Feb 2010 15:37:24 -0800 | From | Andrew Morton <> | Subject | Re: [patch 4/7 -mm] oom: badness heuristic rewrite |
| |
On Thu, 11 Feb 2010 15:31:14 -0800 (PST) David Rientjes <rientjes@google.com> wrote:
> > There _are_ things we can do though. Detect a write to the old file and > > emit a WARN_ON_ONCE("you suck"). Wait a year, turn it into > > WARN_ON("you really suck"). Wait a year, then remove it. > > > > Ok, I'll use WARN_ON_ONCE() to let the user know of the deprecation and > then add an entry to Documentation/feature-removal-schedule.txt.
A printk_once() would be better - WARN() generates a big stack spew which often is wholly irrelevant.
| |