summaryrefslogtreecommitdiff
path: root/innobase/mtr/mtr0log.c
diff options
context:
space:
mode:
Diffstat (limited to 'innobase/mtr/mtr0log.c')
-rw-r--r--innobase/mtr/mtr0log.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/innobase/mtr/mtr0log.c b/innobase/mtr/mtr0log.c
index e3ba531bcb8..82baa8905ba 100644
--- a/innobase/mtr/mtr0log.c
+++ b/innobase/mtr/mtr0log.c
@@ -54,15 +54,15 @@ mlog_write_initial_log_record(
byte* log_ptr;
ut_ad(type <= MLOG_BIGGEST_TYPE);
+ ut_ad(type > MLOG_8BYTES);
if (ptr < buf_pool->frame_zero || ptr >= buf_pool->high_end) {
fprintf(stderr,
- "InnoDB: Error: trying to write to a stray memory location %lx\n",
- (ulint)ptr);
+ "InnoDB: Error: trying to write to a stray memory location %p\n", ptr);
ut_error;
}
- log_ptr = mlog_open(mtr, 20);
+ log_ptr = mlog_open(mtr, 11);
/* If no logging is requested, we may return now */
if (log_ptr == NULL) {
@@ -221,8 +221,7 @@ mlog_write_ulint(
if (ptr < buf_pool->frame_zero || ptr >= buf_pool->high_end) {
fprintf(stderr,
- "InnoDB: Error: trying to write to a stray memory location %lx\n",
- (ulint)ptr);
+ "InnoDB: Error: trying to write to a stray memory location %p\n", ptr);
ut_error;
}
@@ -268,8 +267,7 @@ mlog_write_dulint(
if (ptr < buf_pool->frame_zero || ptr >= buf_pool->high_end) {
fprintf(stderr,
- "InnoDB: Error: trying to write to a stray memory location %lx\n",
- (ulint)ptr);
+ "InnoDB: Error: trying to write to a stray memory location %p\n", ptr);
ut_error;
}
@@ -312,8 +310,7 @@ mlog_write_string(
if (ptr < buf_pool->frame_zero || ptr >= buf_pool->high_end) {
fprintf(stderr,
- "InnoDB: Error: trying to write to a stray memory location %lx\n",
- (ulint)ptr);
+ "InnoDB: Error: trying to write to a stray memory location %p\n", ptr);
ut_error;
}
ut_ad(ptr && mtr);