mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-06 22:07:17 +03:00
Fix logic in printing
`cbopaque` can now be overriden without overriding `write_cb` in the first place. (Otherwise there would be no need to have the `cbopaque` parameter in `malloc_message`.)
This commit is contained in:
parent
34e75630cc
commit
d26636d566
3 changed files with 2 additions and 3 deletions
|
|
@ -54,7 +54,7 @@ size_t malloc_vsnprintf(char *str, size_t size, const char *format,
|
|||
size_t malloc_snprintf(char *str, size_t size, const char *format, ...)
|
||||
JEMALLOC_FORMAT_PRINTF(3, 4);
|
||||
/*
|
||||
* The caller can set write_cb and cbopaque to null to choose to print with the
|
||||
* The caller can set write_cb to null to choose to print with the
|
||||
* je_malloc_message hook.
|
||||
*/
|
||||
void malloc_vcprintf(void (*write_cb)(void *, const char *), void *cbopaque,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue