]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Use WARN() in uasm for better diagnostics.
authorDavid Daney <ddaney@caviumnetworks.com>
Tue, 28 Dec 2010 02:18:29 +0000 (18:18 -0800)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 18 Jan 2011 18:30:24 +0000 (19:30 +0100)
commit98c7706db8a7243cfa3aeda114777126a917a493
tree96f8ee1bcbda6aded36a9f551f4df8179e33782c
parent0c476b0c20785eab9b0545309d7593367bda9642
MIPS: Use WARN() in uasm for better diagnostics.

On the off chance that uasm ever warns about overflow, there is no way
to know what the offending instruction is.

Change the printks to WARNs, so we can get a nice stack trace.  It has
the added benefit of being much more noticeable than the short single
line warning message, so is less likely to be ignored.

Signed-off-by: David Daney <ddaney@caviumnetworks.com>
To: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/1905/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/mm/uasm.c