]> git.proxmox.com Git - mirror_ubuntu-disco-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)
commit8d662c8d34a05e8e47deaa9e22fe770dc557c2d3
tree96f8ee1bcbda6aded36a9f551f4df8179e33782c
parent2c8c53e28f178577dfdf3a69731b998b7e3df8ae
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