diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2012-04-10 20:11:08 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2012-04-10 20:16:28 +0200 |
commit | 3082f7f06b261b951315f096afae34c6b571cc06 (patch) | |
tree | e0f32bd47b7ce1c54d26e986838b0f47781952d7 /sal | |
parent | 8cd05e9cf1152b21528c6f1a5bda3d949dc49791 (diff) |
make OSL_ASSERT print the failed expression, not just "OSL_ASSERT"
Diffstat (limited to 'sal')
-rw-r--r-- | sal/inc/osl/diagnose.h | 2 |
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 |