@@ -1195,7 +1195,7 @@ when it try to get the value of TIME_ZONE global variable from master.";
1195
1195
if (master_res)
1196
1196
mysql_free_result(master_res);
1197
1197
DBUG_ASSERT(err_code != 0);
1198
- mi->report(ERROR_LEVEL, err_code, err_buff);
1198
+ mi->report(ERROR_LEVEL, err_code, "%s", err_buff);
1199
1199
DBUG_RETURN(1);
1200
1200
}
1201
1201
@@ -2386,7 +2386,7 @@ static bool check_io_slave_killed(THD *thd, Master_info *mi, const char *info)
2386
2386
if (io_slave_killed(thd, mi))
2387
2387
{
2388
2388
if (info && global_system_variables.log_warnings)
2389
- sql_print_information(info);
2389
+ sql_print_information("%s", info);
2390
2390
return TRUE;
2391
2391
}
2392
2392
return FALSE;
@@ -2456,13 +2456,13 @@ static int try_to_reconnect(THD *thd, MYSQL *mysql, Master_info *mi,
2456
2456
}
2457
2457
else
2458
2458
{
2459
- sql_print_information(buf);
2459
+ sql_print_information("%s", buf);
2460
2460
}
2461
2461
}
2462
2462
if (safe_reconnect(thd, mysql, mi, 1) || io_slave_killed(thd, mi))
2463
2463
{
2464
2464
if (global_system_variables.log_warnings)
2465
- sql_print_information(messages[SLAVE_RECON_MSG_KILLED_AFTER]);
2465
+ sql_print_information("%s", messages[SLAVE_RECON_MSG_KILLED_AFTER]);
2466
2466
return 1;
2467
2467
}
2468
2468
return 0;
@@ -2679,7 +2679,7 @@ slave. If the entry is correct, restart the server with a higher value of \
2679
2679
max_allowed_packet",
2680
2680
thd->variables.max_allowed_packet);
2681
2681
mi->report(ERROR_LEVEL, ER_NET_PACKET_TOO_LARGE,
2682
- ER(ER_NET_PACKET_TOO_LARGE));
2682
+ "%s", ER(ER_NET_PACKET_TOO_LARGE));
2683
2683
goto err;
2684
2684
case ER_MASTER_FATAL_ERROR_READING_BINLOG:
2685
2685
mi->report(ERROR_LEVEL, ER_MASTER_FATAL_ERROR_READING_BINLOG,
@@ -2690,7 +2690,7 @@ max_allowed_packet",
2690
2690
sql_print_error("\
2691
2691
Stopping slave I/O thread due to out-of-memory error from master");
2692
2692
mi->report(ERROR_LEVEL, ER_OUT_OF_RESOURCES,
2693
- ER(ER_OUT_OF_RESOURCES));
2693
+ "%s", ER(ER_OUT_OF_RESOURCES));
2694
2694
goto err;
2695
2695
}
2696
2696
if (try_to_reconnect(thd, mysql, mi, &retry_count, suppress_warnings,
@@ -3050,7 +3050,7 @@ log '%s' at position %s, relay log '%s' position: %s", RPL_LOG_NAME,
3050
3050
This function is reporting an error which was not reported
3051
3051
while executing exec_relay_log_event().
3052
3052
*/
3053
- rli->report(ERROR_LEVEL, thd->main_da.sql_errno(), errmsg);
3053
+ rli->report(ERROR_LEVEL, thd->main_da.sql_errno(), "%s", errmsg);
3054
3054
}
3055
3055
else if (last_errno != thd->main_da.sql_errno())
3056
3056
{
0 commit comments