1
0
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:
tomas@poseidon.ndb.mysql.com
2004-10-21 19:02:01 +00:00
parent 8224ef80e4
commit 6e10fe2519
79 changed files with 350 additions and 294 deletions

View File

@@ -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,