powerpc/powernv: Change BUG_ON to WARN_ON in elog code
authorVasant Hegde <hegdevasant@linux.vnet.ibm.com>
Wed, 23 Jul 2014 09:22:39 +0000 (14:52 +0530)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 28 Jul 2014 01:30:54 +0000 (11:30 +1000)
commitfa952c54ba13deeb91cd4c7af255cdb5f1273535
tree88c9d7017e0cbdd892bfb7449f8d969fbf75f46a
parent8903461c9bc56fcb041fb92d054e2529951770b6
powerpc/powernv: Change BUG_ON to WARN_ON in elog code

We can continue to read the error log (up to MAX size) even if
we get the elog size more than MAX size. Hence change BUG_ON to
WARN_ON.

Also updated error message.

Reported-by: Gopesh Kumar Chaudhary <gopchaud@in.ibm.com>
Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Signed-off-by: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
Acked-by: Deepthi Dharwar <deepthi@linux.vnet.ibm.com>
Acked-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/powernv/opal-elog.c