1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

Re-enable 'S' for --debug (sf_sanity checking for each call)

- Fixed also a wrong comment and a wrong argument to printf
This commit is contained in:
Monty
2017-12-22 14:16:21 +02:00
parent 1464f4808c
commit 139e8afc2c
6 changed files with 21 additions and 7 deletions

View File

@@ -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;