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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user