summaryrefslogtreecommitdiff
path: root/mysys/safemalloc.c
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2017-12-22 14:16:21 +0200
committerMonty <monty@mariadb.org>2017-12-22 14:56:58 +0200
commit139e8afc2c165a08f4fa13da70b0aad3cf7b9df5 (patch)
treecf3eb4a3d2c54fc09d2e5c144d8eb7633ff6bd9a /mysys/safemalloc.c
parent1464f4808c08155fd10ba09eae2bb2c3f177482c (diff)
downloadmariadb-git-139e8afc2c165a08f4fa13da70b0aad3cf7b9df5.tar.gz
Re-enable 'S' for --debug (sf_sanity checking for each call)
- Fixed also a wrong comment and a wrong argument to printf
Diffstat (limited to 'mysys/safemalloc.c')
-rw-r--r--mysys/safemalloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mysys/safemalloc.c b/mysys/safemalloc.c
index b8d9442fbc9..ae8993fbf00 100644
--- a/mysys/safemalloc.c
+++ b/mysys/safemalloc.c
@@ -330,7 +330,7 @@ static int bad_ptr(const char *where, void *ptr)
magicend[3] != MAGICEND3)
{
DBUG_PRINT("error",("Overrun buffer %p", ptr));
- warn("Error: %s overrun buffer %p", where);
+ warn("Error: %s overrun buffer %p", where, ptr);
fprintf(stderr, "Allocated at ");
print_stack(irem->frame);
return 1;
@@ -340,7 +340,7 @@ static int bad_ptr(const char *where, void *ptr)
}
/* check all allocated memory list for consistency */
-static int sf_sanity()
+int sf_sanity()
{
struct st_irem *irem;
int flag= 0;