From ae2dac7f07a75a7fe7c432cb212da92eb22b533b Mon Sep 17 00:00:00 2001 From: "HARMEL, Bernard" Date: Wed, 27 Mar 2024 13:28:42 +0100 Subject: [PATCH] 5.5.3.10: remove printf --- CMakeLists.txt | 2 +- lib/src/bofsocket.cpp | 4 ++-- lib/src/bofsystem.cpp | 6 +++--- lib/src/bofthread.cpp | 6 +++--- vcpkg.json | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6db0457..d5d7f26 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -44,7 +44,7 @@ include(cmake/fetch_content.cmake) # in code coverage computation as they are test programs themselves. set(EXTRA_COVERAGE_EXCLUSION "\'${CMAKE_CURRENT_SOURCE_DIR}/integration/*\'") -project(bofstd VERSION 5.5.3.9) +project(bofstd VERSION 5.5.3.10) if (EMSCRIPTEN) message("Force pthread detection for BofStd compilation under EMSCRIPTEN") diff --git a/lib/src/bofsocket.cpp b/lib/src/bofsocket.cpp index 03dc2e7..1299b01 100644 --- a/lib/src/bofsocket.cpp +++ b/lib/src/bofsocket.cpp @@ -70,7 +70,7 @@ BofSocket::BofSocket(BOFSOCKET _Socket_h, const BOF_SOCKET_PARAM &_rBofSocketPar BofSocket::~BofSocket() { S_mBofSocketBalance--; - BOF_DBG_PRINTF("@@@%s ~BofSocket %zX Bal %04d\n", mBofSocketParam_X.BaseChannelParam_X.ChannelName_S.c_str(), (uintptr_t)mSocket, S_mBofSocketBalance.load()); + //BOF_DBG_PRINTF("@@@%s ~BofSocket %zX Bal %04d\n", mBofSocketParam_X.BaseChannelParam_X.ChannelName_S.c_str(), (uintptr_t)mSocket, S_mBofSocketBalance.load()); ShutdownSocket(); } @@ -291,7 +291,7 @@ BOFERR BofSocket::InitializeSocket(const BOF_SOCKET_PARAM &_rBofSocketParam_X) } mErrorCode_E = Rts_E; S_mBofSocketBalance++; - BOF_DBG_PRINTF("@@@%s InitializeSocket %zX Bal %04d Sts %08X Ip %s\n", _rBofSocketParam_X.BaseChannelParam_X.ChannelName_S.c_str(), (uintptr_t)mSocket, S_mBofSocketBalance.load(), Rts_E, mBofSocketParam_X.BindIpAddress_S.c_str()); + //BOF_DBG_PRINTF("@@@%s InitializeSocket %zX Bal %04d Sts %08X Ip %s\n", _rBofSocketParam_X.BaseChannelParam_X.ChannelName_S.c_str(), (uintptr_t)mSocket, S_mBofSocketBalance.load(), Rts_E, mBofSocketParam_X.BindIpAddress_S.c_str()); return Rts_E; } diff --git a/lib/src/bofsystem.cpp b/lib/src/bofsystem.cpp index a6a3ea3..c7455db 100644 --- a/lib/src/bofsystem.cpp +++ b/lib/src/bofsystem.cpp @@ -1796,7 +1796,7 @@ static void *S_ThreadLauncher(void *_pThreadContext) if (pThread_X) { S_BofThreadBalance++; - printf("%u: Start of thread '%s' BAL %d\n", Bof_GetMsTickCount(), pThread_X->Name_S.c_str(), S_BofThreadBalance.load()); + //printf("%u: Start of thread '%s' BAL %d\n", Bof_GetMsTickCount(), pThread_X->Name_S.c_str(), S_BofThreadBalance.load()); Sts_E = BOF_ERR_NO_ERROR; #if defined(_WIN32) @@ -1908,7 +1908,7 @@ static void *S_ThreadLauncher(void *_pThreadContext) pThread_X->ThreadRunning_B = false; S_BofThreadBalance--; // Bof_ErrorCode can fail does to app shudown (static initializer) - printf("%u: S_ThreadLauncher End of thread '%s' BAL %d, ExitCode %d MustStop %d\n", Bof_GetMsTickCount(), pThread_X->Name_S.c_str(), S_BofThreadBalance.load(), pThread_X->ThreadExitCode_E, pThread_X->ThreadMustStop_B.load()); + //printf("%u: S_ThreadLauncher End of thread '%s' BAL %d, ExitCode %d MustStop %d\n", Bof_GetMsTickCount(), pThread_X->Name_S.c_str(), S_BofThreadBalance.load(), pThread_X->ThreadExitCode_E, pThread_X->ThreadMustStop_B.load()); } return pRts; @@ -2043,7 +2043,7 @@ BOFERR Bof_StopThread(BOF_THREAD &_rThread_X) } } } - printf("%u: Bof_StopThread: End '%s' BAL %d, ExitCode %d MustStop %d Delta %d ThreadStopTo %d\n", Bof_GetMsTickCount(), _rThread_X.Name_S.c_str(), S_BofThreadBalance.load(), _rThread_X.ThreadExitCode_E, _rThread_X.ThreadMustStop_B.load(), Delta_U32, ThreadStopTo_B); + //printf("%u: Bof_StopThread: End '%s' BAL %d, ExitCode %d MustStop %d Delta %d ThreadStopTo %d\n", Bof_GetMsTickCount(), _rThread_X.Name_S.c_str(), S_BofThreadBalance.load(), _rThread_X.ThreadExitCode_E, _rThread_X.ThreadMustStop_B.load(), Delta_U32, ThreadStopTo_B); } #if defined(_WIN32) bool Sts_B; diff --git a/lib/src/bofthread.cpp b/lib/src/bofthread.cpp index df6e789..0a5ec37 100644 --- a/lib/src/bofthread.cpp +++ b/lib/src/bofthread.cpp @@ -1,4 +1,4 @@ -/* +/*printf * Copyright (c) 2000-2006, Sci. All rights reserved. * * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY @@ -789,7 +789,7 @@ void BofThread::BofThread_Thread() uint32_t Delta_U32; S_mBofThreadBalance++; - printf("%u: Start of thread '%s' BAL %d this %p\n", Bof_GetMsTickCount(), mThreadParam_X.Name_S.c_str(), S_mBofThreadBalance.load(), this); + //printf("%u: Start of thread '%s' BAL %d this %p\n", Bof_GetMsTickCount(), mThreadParam_X.Name_S.c_str(), S_mBofThreadBalance.load(), this); Sts_E = Bof_SignalEvent(mThreadEnterEvent_X, 0); // printf("%u: ENTER THREAD SIGNAL MTHREADENTEREVENT_X %d\n", BOF::Bof_GetMsTickCount(), Sts_E); BOF_ASSERT(Sts_E == BOF_ERR_NO_ERROR); @@ -904,7 +904,7 @@ void BofThread::BofThread_Thread() Sts_E = Bof_SignalEvent(mThreadExitEvent_X, 0); S_mBofThreadBalance--; // Bof_ErrorCode can fail does to app shudown (static initializer) - printf("%u: BofThread_Thread End of thread '%s' BAL %d, ExitCode %d MustStop %d\n", Bof_GetMsTickCount(), mThreadParam_X.Name_S.c_str(), S_mBofThreadBalance.load(), Sts_E, mThreadMustStop_B.load()); + //printf("%u: BofThread_Thread End of thread '%s' BAL %d, ExitCode %d MustStop %d\n", Bof_GetMsTickCount(), mThreadParam_X.Name_S.c_str(), S_mBofThreadBalance.load(), Sts_E, mThreadMustStop_B.load()); // BOF_ASSERT(Sts_E == BOF_ERR_NO_ERROR); } int BofThread::S_BofThreadBalance() diff --git a/vcpkg.json b/vcpkg.json index 6ea3dc0..0bcd776 100644 --- a/vcpkg.json +++ b/vcpkg.json @@ -1,6 +1,6 @@ { "name": "bofstd", - "version": "5.5.3.9", + "version": "5.5.3.10", "description": "The onbings general purpose C++ Multiplatform library", "dependencies": [ {