Skip to content

Commit

Permalink
Fix a couple of my_snprintf arg mismatches
Browse files Browse the repository at this point in the history
This commit backports two fixes from #3360’s vast discovery.
  • Loading branch information
ParadoxV5 authored and LinuxJedi committed Oct 1, 2024
1 parent 35c732c commit d8d80bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/mysqldump.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7285,7 +7285,7 @@ int main(int argc, char **argv)
goto err;
connection_pool.for_each_connection([](MYSQL *c) {
if (start_transaction(c))
maybe_die(EX_MYSQLERR, "Failed to start transaction on connection ID %u", mysql->thread_id);
maybe_die(EX_MYSQLERR, "Failed to start transaction on connection ID %lu", mysql->thread_id);
});
}

Expand Down
3 changes: 2 additions & 1 deletion sql/log.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3901,7 +3901,8 @@ bool MYSQL_BIN_LOG::open(const char *log_name,
if (!gtid_index)
sql_print_information("Could not create GTID index for binlog "
"file '%s'. Accesses to this binlog file will "
"fallback to slower sequential scan.");
"fallback to slower sequential scan.",
log_file_name);
}
else
gtid_index= nullptr;
Expand Down

0 comments on commit d8d80bd

Please sign in to comment.