Skip to content

Commit

Permalink
fix string formating
Browse files Browse the repository at this point in the history
  • Loading branch information
mirostauder committed Feb 6, 2024
1 parent 11d77c3 commit a0132d3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/tap/tests/mysql-fast_forward-t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ int create_connections() {
for (int i = 0; i < NUM_CONNS ; i++) {

MYSQL * mysql = mysql_init(NULL);
diag("Connecting: cl.username='%s' cl.use_ssl=%d cl.compression", cl.admin_username, cl.use_ssl, cl.compression);
diag("Connecting: cl.username='%s' cl.use_ssl=%d cl.compression=%d", cl.admin_username, cl.use_ssl, cl.compression);
if (cl.use_ssl)
mysql_ssl_set(mysql, NULL, NULL, NULL, NULL, NULL);
if (cl.compression)
Expand Down
2 changes: 1 addition & 1 deletion test/tap/tests/test_prometheus_metrics-t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ bool trigger_access_denied_wrong_password_total(MYSQL*, MYSQL*) {
bool access_denied_error = false;
// Connect to ProxySQL
MYSQL* proxysql = mysql_init(NULL);
diag("Connecting: username='%s' cl.use_ssl=%d cl.compression", "invalid_username", cl.use_ssl, cl.compression);
diag("Connecting: username='%s' cl.use_ssl=%d cl.compression=%d", "invalid_username", cl.use_ssl, cl.compression);
if (cl.use_ssl)
mysql_ssl_set(proxysql, NULL, NULL, NULL, NULL, NULL);
if (cl.compression)
Expand Down
2 changes: 1 addition & 1 deletion test/tap/tests/test_sqlite3_server-t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ int main(int argc, char** argv) {
std::string inv_user_err {};
bool failed_to_connect = false;
MYSQL* proxysql_sqlite3 = mysql_init(NULL);
diag("Connecting: username='%s' cl.use_ssl=%d cl.compression", "foobar_user", cl.use_ssl, cl.compression);
diag("Connecting: username='%s' cl.use_ssl=%d cl.compression=%d", "foobar_user", cl.use_ssl, cl.compression);
if (cl.use_ssl)
mysql_ssl_set(proxysql_sqlite3, NULL, NULL, NULL, NULL, NULL);
if (cl.compression)
Expand Down

0 comments on commit a0132d3

Please sign in to comment.