Skip to content

Commit

Permalink
fix: int64 uint64 print format
Browse files Browse the repository at this point in the history
  • Loading branch information
DuanKuanJun committed May 24, 2023
1 parent f06499c commit d761ede
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/benchQuery.c
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ static int multi_thread_specified_table_query(uint16_t iface, char* dbName) {
// check invaid
if(nSqlCount == 0 || nConcurrent == 0 ) {
if(nSqlCount == 0)
errorPrint(" query sql count is %ld. must set query sqls. \n", nSqlCount);
errorPrint(" query sql count is %" PRIu64 ". must set query sqls. \n", nSqlCount);
if(nConcurrent == 0)
errorPrint(" concurrent is %d , specified_table_query->concurrent must not zero. \n", nConcurrent);
return -1;
Expand Down Expand Up @@ -474,7 +474,7 @@ static int multi_thread_specified_table_query(uint16_t iface, char* dbName) {

// if failed, set termainte flag true like ctrl+c exit
if (exeError) {
errorPrint(" i=%ld create thread occur error, so wait exit ...\n", i);
errorPrint(" i=%" PRIu64 " create thread occur error, so wait exit ...\n", i);
g_arguments->terminate = true;
}

Expand Down

0 comments on commit d761ede

Please sign in to comment.