summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick Williams <iawillia@us.ibm.com>2011-05-24 13:10:03 -0500
committerMATTHEW S. BARTH <msbarth@us.ibm.com>2011-05-25 13:41:00 -0500
commit90d4e5df06e6108f846013a48b996e936adeffec (patch)
treea5eaf103a1cc811a2a2c0589aa7827d0f35efec5 /src
parent5cc0a5830b021557037ad1c3f017a278b15fdd49 (diff)
downloadtalos-hostboot-90d4e5df06e6108f846013a48b996e936adeffec.tar.gz
talos-hostboot-90d4e5df06e6108f846013a48b996e936adeffec.zip
Improve assert debugability.
Change-Id: Iec3709694ea02ce2c162d310949ad8586da0b539 Reviewed-on: http://gfwr801.rchland.ibm.com:8080/gerrit/96 Tested-by: Jenkins Server Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com> Reviewed-by: MATTHEW S. BARTH <msbarth@us.ibm.com>
Diffstat (limited to 'src')
-rw-r--r--src/lib/assert.C4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/assert.C b/src/lib/assert.C
index edf4ea0d4..953068d4a 100644
--- a/src/lib/assert.C
+++ b/src/lib/assert.C
@@ -1,8 +1,10 @@
+#include <kernel/console.H>
extern "C" void __assert(bool expr, const char *exprStr,
const char *file, int line)
{
- // TODO
+ // TODO
+ printk("Assert in %s (%d): %s\n", file, line, exprStr);
while (true);
}
OpenPOWER on IntegriCloud