summaryrefslogtreecommitdiff
path: root/sal/qa/osl
diff options
context:
space:
mode:
authorRohan Kumar <rohankanojia420@gmail.com>2016-03-02 01:28:58 +0530
committerEike Rathke <erack@redhat.com>2016-03-03 17:00:26 +0000
commitf59136a2ed1e3eb01cc5b62c5a7da07c34cbdfae (patch)
treee34d2b6db403fce36c6d8a57e9c3adf31c935e90 /sal/qa/osl
parentf336f63da900d76c2bf6e5690f1c8a7bd15a0aa2 (diff)
tdf#91794 remove OSL_DEBUG_LEVEL > 1 conditionals
Change-Id: If329cf8257684e7bd2936641b8f14ec3e9b9f733 Reviewed-on: https://gerrit.libreoffice.org/22647 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'sal/qa/osl')
-rw-r--r--sal/qa/osl/process/osl_process.cxx24
1 files changed, 12 insertions, 12 deletions
diff --git a/sal/qa/osl/process/osl_process.cxx b/sal/qa/osl/process/osl_process.cxx
index 280e87302ac0..036be4bb593b 100644
--- a/sal/qa/osl/process/osl_process.cxx
+++ b/sal/qa/osl/process/osl_process.cxx
@@ -276,9 +276,9 @@ public:
string_container_t parent_env;
read_parent_environment(&parent_env);
-#if OSL_DEBUG_LEVEL > 1
+#if OSL_DEBUG_LEVEL > 0
for (string_container_t::const_iterator iter = parent_env.begin(), end = parent_env.end(); iter != end; ++iter)
- std::cerr << "initially parent env: " << *iter << std::endl;
+ SAL_INFO("sal.process", "initially parent env: " << *iter);
#endif
//remove the environment variables that we have changed
@@ -287,9 +287,9 @@ public:
std::remove_if(parent_env.begin(), parent_env.end(), exclude(different_env_vars)),
parent_env.end());
-#if OSL_DEBUG_LEVEL > 1
+#if OSL_DEBUG_LEVEL > 0
for (string_container_t::const_iterator iter = parent_env.begin(), end = parent_env.end(); iter != end; ++iter)
- std::cerr << "stripped parent env: " << *iter << std::endl;
+ SAL_INFO("sal.process", "stripped parent env: " << *iter);
#endif
//read the child environment and exclude the variables that
@@ -297,9 +297,9 @@ public:
string_container_t child_env;
read_child_environment(&child_env);
-#if OSL_DEBUG_LEVEL > 1
+#if OSL_DEBUG_LEVEL > 0
for (string_container_t::const_iterator iter = child_env.begin(), end = child_env.end(); iter != end; ++iter)
- std::cerr << "initial child env: " << *iter << std::endl;
+ SAL_INFO("sal.process", "initial child env: " << *iter);
#endif
//partition the child environment into the variables that
//are different to the parent environment (they come first)
@@ -311,22 +311,22 @@ public:
string_container_t different_child_env_vars(child_env.begin(), iter_logical_end);
child_env.erase(child_env.begin(), iter_logical_end);
-#if OSL_DEBUG_LEVEL > 1
+#if OSL_DEBUG_LEVEL > 0
for (string_container_t::const_iterator iter = child_env.begin(), end = child_env.end(); iter != end; ++iter)
- std::cerr << "stripped child env: " << *iter << std::endl;
+ SAL_INFO("sal.process", "stripped child env: " << *iter);
#endif
bool common_env_size_equals = (parent_env.size() == child_env.size());
bool common_env_content_equals = std::equal(child_env.begin(), child_env.end(), parent_env.begin());
-#if OSL_DEBUG_LEVEL > 1
+#if OSL_DEBUG_LEVEL > 0
for (string_container_t::const_iterator iter = different_env_vars.begin(), end = different_env_vars.end(); iter != end; ++iter)
- std::cerr << "different should be: " << *iter << std::endl;
+ SAL_INFO("sal.process", "different should be: " << *iter);
#endif
-#if OSL_DEBUG_LEVEL > 1
+#if OSL_DEBUG_LEVEL > 0
for (string_container_t::const_iterator iter = different_child_env_vars.begin(), end = different_child_env_vars.end(); iter != end; ++iter)
- std::cerr << "different are: " << *iter << std::endl;
+ SAL_INFO("sal.process", "different are: " << *iter);
#endif
bool different_env_size_equals = (different_child_env_vars.size() == different_env_vars.size());