summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2012-04-10 20:11:08 +0200
committerLuboš Luňák <l.lunak@suse.cz>2012-04-10 20:16:28 +0200
commit3082f7f06b261b951315f096afae34c6b571cc06 (patch)
treee0f32bd47b7ce1c54d26e986838b0f47781952d7 /sal
parent8cd05e9cf1152b21528c6f1a5bda3d949dc49791 (diff)
make OSL_ASSERT print the failed expression, not just "OSL_ASSERT"
Diffstat (limited to 'sal')
-rw-r--r--sal/inc/osl/diagnose.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/inc/osl/diagnose.h b/sal/inc/osl/diagnose.h
index 9a6112be0788..f094abe5d534 100644
--- a/sal/inc/osl/diagnose.h
+++ b/sal/inc/osl/diagnose.h
@@ -150,7 +150,7 @@ SAL_DLLPUBLIC pfunc_osl_printDetailedDebugMessage SAL_CALL osl_setDetailedDebugM
#if OSL_DEBUG_LEVEL > 0
#define OSL_ASSERT(c) \
- SAL_DETAIL_WARN_IF_FORMAT(!(c), "legacy.osl", "OSL_ASSERT")
+ SAL_DETAIL_WARN_IF_FORMAT(!(c), "legacy.osl", "OSL_ASSERT: %s", #c)
#define OSL_ENSURE(c, m) SAL_DETAIL_WARN_IF_FORMAT(!(c), "legacy.osl", "%s", m)
#define OSL_FAIL(m) SAL_DETAIL_WARN_IF_FORMAT(sal_True, "legacy.osl", "%s", m)
#else