log0recv.c:

  Removed compiler warnings about wrong printf formats
parent 7b521b36
...@@ -1371,7 +1371,9 @@ recv_apply_log_recs_for_backup( ...@@ -1371,7 +1371,9 @@ recv_apply_log_recs_for_backup(
if (recv_max_parsed_page_no >= n_pages_total) { if (recv_max_parsed_page_no >= n_pages_total) {
printf( printf(
"InnoDB: Error: tablespace size %lu pages, but a log record on page %lu!\n", "InnoDB: Error: tablespace size %lu pages, but a log record on page %lu!\n"
"InnoDB: Are you sure you have specified all the ibdata files right in\n"
"InnoDB: the my.cnf file you gave as the argument to ibbackup --restore?\n",
n_pages_total, recv_max_parsed_page_no); n_pages_total, recv_max_parsed_page_no);
} }
...@@ -1395,7 +1397,7 @@ recv_apply_log_recs_for_backup( ...@@ -1395,7 +1397,7 @@ recv_apply_log_recs_for_backup(
&success); &success);
if (!success) { if (!success) {
printf( printf(
"InnoDB: Error: cannot open %lu'th data file %s\n", nth_file); "InnoDB: Error: cannot open %lu'th data file\n", nth_file);
exit(1); exit(1);
} }
...@@ -1411,7 +1413,7 @@ recv_apply_log_recs_for_backup( ...@@ -1411,7 +1413,7 @@ recv_apply_log_recs_for_backup(
UNIV_PAGE_SIZE); UNIV_PAGE_SIZE);
if (!success) { if (!success) {
printf( printf(
"InnoDB: Error: cannot read page no %lu from %lu'th data file %s\n", "InnoDB: Error: cannot read page no %lu from %lu'th data file\n",
nth_page_in_file, nth_file); nth_page_in_file, nth_file);
exit(1); exit(1);
...@@ -1439,7 +1441,7 @@ recv_apply_log_recs_for_backup( ...@@ -1439,7 +1441,7 @@ recv_apply_log_recs_for_backup(
UNIV_PAGE_SIZE); UNIV_PAGE_SIZE);
if (!success) { if (!success) {
printf( printf(
"InnoDB: Error: cannot write page no %lu to %lu'th data file %s\n", "InnoDB: Error: cannot write page no %lu to %lu'th data file\n",
nth_page_in_file, nth_file); nth_page_in_file, nth_file);
exit(1); exit(1);
...@@ -1797,7 +1799,7 @@ recv_report_corrupt_log( ...@@ -1797,7 +1799,7 @@ recv_report_corrupt_log(
"InnoDB: Recv offset %lu, prev %lu\n", "InnoDB: Recv offset %lu, prev %lu\n",
recv_previous_parsed_rec_type, recv_previous_parsed_rec_type,
recv_previous_parsed_rec_is_multi, recv_previous_parsed_rec_is_multi,
ptr - recv_sys->buf, (ulint)(ptr - recv_sys->buf),
recv_previous_parsed_rec_offset); recv_previous_parsed_rec_offset);
if ((ulint)(ptr - recv_sys->buf + 100) if ((ulint)(ptr - recv_sys->buf + 100)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment