mirror of
https://github.com/MariaDB/server.git
synced 2025-10-31 15:50:51 +03:00
changed to call internal snprintf/vsnprintf
This commit is contained in:
@@ -484,7 +484,7 @@ void NDBT_TestCaseImpl1::startStepInThread(int stepNo, NDBT_Context* ctx){
|
||||
NDBT_Step* pStep = steps[stepNo];
|
||||
pStep->setContext(ctx);
|
||||
char buf[16];
|
||||
snprintf(buf, sizeof(buf), "step_%d", stepNo);
|
||||
BaseString::snprintf(buf, sizeof(buf), "step_%d", stepNo);
|
||||
NdbThread* pThread = NdbThread_Create(runStep_C,
|
||||
(void**)pStep,
|
||||
65535,
|
||||
@@ -704,7 +704,7 @@ void NDBT_TestCaseImpl1::printTestResult(){
|
||||
res = "FAILED TO CREATE TABLE";
|
||||
else if (tcr->getResult() == FAILED_TO_DISCOVER)
|
||||
res = "FAILED TO DISCOVER TABLE";
|
||||
snprintf(buf, 255," %-10s %-5s %-20s", tcr->getName(), res, tcr->getTimeStr());
|
||||
BaseString::snprintf(buf, 255," %-10s %-5s %-20s", tcr->getName(), res, tcr->getTimeStr());
|
||||
ndbout << buf<<endl;
|
||||
}
|
||||
}
|
||||
@@ -1078,7 +1078,7 @@ const char* NDBT_TestSuite::getDate(){
|
||||
tm_now = gmtime(&now);
|
||||
#endif
|
||||
|
||||
snprintf(theTime, 128,
|
||||
BaseString::snprintf(theTime, 128,
|
||||
"%d-%.2d-%.2d %.2d:%.2d:%.2d",
|
||||
tm_now->tm_year + 1900,
|
||||
tm_now->tm_mon + 1,
|
||||
|
||||
Reference in New Issue
Block a user