From c75ef234530a8a77eb3a70324cb505c5dfaaa5aa Mon Sep 17 00:00:00 2001 From: Jan Holesovsky Date: Mon, 30 Jun 2014 08:10:39 +0200 Subject: It is useful to know what macros are we expanding, and to what. Change-Id: If7704edc5baa9759abc680b8d2040b9cdfe92317 --- include/sal/log-areas.dox | 1 + sal/rtl/bootstrap.cxx | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/include/sal/log-areas.dox b/include/sal/log-areas.dox index 1627ad2ce860..c5d11969f18a 100644 --- a/include/sal/log-areas.dox +++ b/include/sal/log-areas.dox @@ -20,6 +20,7 @@ certain functionality. @section SAL +@li @c sal.bootstrap - SAL bootstrap @li @c sal.debug - SAL debugging functionality @li @c sal.file @li @c sal.osl - SAL OSL library diff --git a/sal/rtl/bootstrap.cxx b/sal/rtl/bootstrap.cxx index c93aa0c5ace9..cf5b9caf4e09 100644 --- a/sal/rtl/bootstrap.cxx +++ b/sal/rtl/bootstrap.cxx @@ -895,6 +895,7 @@ rtl::OUString expandMacros( Bootstrap_Impl const * file, rtl::OUString const & text, LookupMode mode, ExpandRequestLink const * requestStack) { + SAL_INFO("sal.bootstrap", "expandMacros called with: " << text); rtl::OUStringBuffer buf; for (sal_Int32 i = 0; i < text.getLength();) { bool escaped; @@ -1020,7 +1021,9 @@ rtl::OUString expandMacros( } } } - return buf.makeStringAndClear(); + OUString result(buf.makeStringAndClear()); + SAL_INFO("sal.bootstrap", "expandMacros result: " << result); + return result; } } -- cgit