diff options
author | unknown <tomas@poseidon.ndb.mysql.com> | 2004-10-21 19:02:01 +0000 |
---|---|---|
committer | unknown <tomas@poseidon.ndb.mysql.com> | 2004-10-21 19:02:01 +0000 |
commit | 63920158ced1f2b343b14b723c2f5d9a92b06e62 (patch) | |
tree | eba95bbc6b196e98a9035458df02703db497dd86 /ndb/test/src/NDBT_Test.cpp | |
parent | 277c84e2b12233624bdcc8f904bf86bbf9512e8e (diff) | |
download | mariadb-git-63920158ced1f2b343b14b723c2f5d9a92b06e62.tar.gz |
changed to call internal snprintf/vsnprintf
Diffstat (limited to 'ndb/test/src/NDBT_Test.cpp')
-rw-r--r-- | ndb/test/src/NDBT_Test.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ndb/test/src/NDBT_Test.cpp b/ndb/test/src/NDBT_Test.cpp index 24446f08947..367223f8c98 100644 --- a/ndb/test/src/NDBT_Test.cpp +++ b/ndb/test/src/NDBT_Test.cpp @@ -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, |