Skip to content

Commit

Permalink
5.5.3.10: remove printf
Browse files Browse the repository at this point in the history
  • Loading branch information
bha-evs committed Mar 27, 2024
1 parent aab677f commit ae2dac7
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
4 changes: 2 additions & 2 deletions lib/src/bofsocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down Expand Up @@ -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;
}

Expand Down
6 changes: 3 additions & 3 deletions lib/src/bofsystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
6 changes: 3 additions & 3 deletions lib/src/bofthread.cpp
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion vcpkg.json
Original file line number Diff line number Diff line change
@@ -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": [
{
Expand Down

0 comments on commit ae2dac7

Please sign in to comment.