Add format attribute to test functions, fix resulting errors

Fixes mysqlmon_failover_stress.
This commit is contained in:
Esa Korhonen
2018-09-12 14:10:04 +02:00
parent e1f2b81734
commit d65d815b99
10 changed files with 15 additions and 14 deletions

View File

@ -115,7 +115,7 @@ void test2(TestConnections& test)
test.add_result(strcmp(buffer1, buffer2) == 0, "Expected results to differ");
test.add_result(strcmp(buffer2, server_id) != 0,
"Expected prepare 2 to go to the master (%s) but it's %s",
server_id[0], buffer2);
server_id, buffer2);
}
void test3(TestConnections& test)
@ -168,7 +168,7 @@ void test3(TestConnections& test)
sprintf(server_id, "%d", test.repl->get_server_id(0));
test.add_result(strcmp(buffer, server_id) != 0,
"Expected the execute inside a transaction to go to the master (%s) but it's %s",
server_id[0], buffer);
server_id, buffer);
}
int main(int argc, char** argv)