summaryrefslogtreecommitdiff
path: root/heap/_check.c
diff options
context:
space:
mode:
authormonty@narttu.mysql.fi <>2002-10-08 22:28:24 +0300
committermonty@narttu.mysql.fi <>2002-10-08 22:28:24 +0300
commitda2abaf8878313534106c39d361660e21ceda8ba (patch)
tree362ce44d140ce7362c738d3068b9786f24043b0d /heap/_check.c
parent226535865bea8f5be21f6c4d8f6a616b5ffc7982 (diff)
downloadmariadb-git-da2abaf8878313534106c39d361660e21ceda8ba.tar.gz
Portability fixes to be able to compile MySQL with VC++
Diffstat (limited to 'heap/_check.c')
-rw-r--r--heap/_check.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/heap/_check.c b/heap/_check.c
index 3b2fc9afad9..4a6482901d9 100644
--- a/heap/_check.c
+++ b/heap/_check.c
@@ -116,13 +116,11 @@ static int check_one_rb_key(HP_INFO *info, uint keynr, ulong records,
SEARCH_FIND | SEARCH_SAME, &not_used))
{
error= 1;
- DBUG_PRINT("error",("Record in wrong link: Link %d Record: %lx\n",
- link, recpos));
+ DBUG_PRINT("error",("Record in wrong link: key: %d Record: %lx\n",
+ keynr, recpos));
}
else
- {
found++;
- }
key= tree_search_next(&keydef->rb_tree, &info->last_pos,
offsetof(TREE_ELEMENT, left),
offsetof(TREE_ELEMENT, right));
@@ -130,7 +128,7 @@ static int check_one_rb_key(HP_INFO *info, uint keynr, ulong records,
}
if (found != records)
{
- DBUG_PRINT("error",("Found %ld of %ld records"));
+ DBUG_PRINT("error",("Found %lu of %lu records", found, records));
error= 1;
}
if (print_status)