1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

memory: improve logging

This commit is contained in:
Steffen Vogel 2018-07-16 21:16:00 +02:00
parent 6c4127fe1b
commit 4d54af002d
2 changed files with 2 additions and 2 deletions

View file

@ -128,7 +128,7 @@ int memory_free(void *ptr)
if (!ma)
return -1;
debug(LOG_MEM | 5, "Releasing %#zx bytes of %s memory", ma->length, ma->type->name);
debug(LOG_MEM | 5, "Releasing %#zx bytes of %s memory: %p", ma->length, ma->type->name, ma->address);
ret = ma->type->free(ma->type, ma);
if (ret)

View file

@ -64,7 +64,7 @@ int pool_destroy(struct pool *p)
queue_destroy(&p->queue);
void *buffer = (char*) p + p->buffer_off;
void *buffer = (char *) p + p->buffer_off;
ret = memory_free(buffer);
if (ret == 0)
p->state = STATE_DESTROYED;