Messages in this thread | | | From | Johannes Weiner <> | Subject | Re: [patch 1/3] Rename WARN() to WARNING() to clear the namespace | Date | Wed, 07 May 2008 14:46:53 +0200 |
| |
Hi Arjan,
Arjan van de Ven <arjan@infradead.org> writes:
> Subject: Rename WARN() to WARNING() to clear the namespace > From: Arjan van de Ven <arjan@linux.intel.com> > > We want to use WARN() as a variant of WARN_ON(), however > a few drivers are using WARN() internally. This patch renames > these to WARNING() to avoid the namespace clash. > A few cases were defining but not using the thing, for those > cases I just deleted the definition.
It always bugged me that there is no WARN() that behaves similar to BUG().
What do you think of making WARN() just emit the warning unconditionally?
And maybe add the possibility to emit a text as well on both WARN() and BUG()? BUG("my kitten was hit by page %p!\n", page);
Hannes
| |