diff options
author | Rohan Kumar <rohankanojia420@gmail.com> | 2016-03-08 22:22:16 +0530 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-03-08 16:57:42 +0000 |
commit | 05bca569232d0ece0c6700513b7b1351238c85ec (patch) | |
tree | e0a32149bd6ca00399e46e1c1c35a0a961fdf57f /cppu/source/threadpool | |
parent | b38f58a3f959b5e36813f8c2d88bdb2baf03a1b9 (diff) |
tdf#91794: Remove OSL_DEBUG_LEVEL > 1 conditionals
Updates pointed by sberg
Change-Id: Ie12548dfa9ad3a6836efbfe64153bc075f138fc6
Reviewed-on: https://gerrit.libreoffice.org/22622
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'cppu/source/threadpool')
-rw-r--r-- | cppu/source/threadpool/thread.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/cppu/source/threadpool/thread.cxx b/cppu/source/threadpool/thread.cxx index 3b95c8d5d5bb..06fd30dd3ba2 100644 --- a/cppu/source/threadpool/thread.cxx +++ b/cppu/source/threadpool/thread.cxx @@ -23,6 +23,7 @@ #include <cstdlib> #include <osl/diagnose.h> #include <uno/threadpool.h> +#include <sal/log.hxx> #include "thread.hxx" #include "jobqueue.hxx" @@ -38,12 +39,7 @@ namespace cppu_threadpool { ThreadAdmin::~ThreadAdmin() { -#if OSL_DEBUG_LEVEL > 1 - if( m_lst.size() ) - { - fprintf( stderr, "%lu Threads left\n" , static_cast<unsigned long>(m_lst.size()) ); - } -#endif + SAL_WARN_IF(m_lst.size(), "cppu.threadpool", m_lst.size() << "Threads left"); } bool ThreadAdmin::add( rtl::Reference< ORequestThread > const & p ) |