Skip to content

Commit 35ad751

Browse files
committed
umf_ba_global_alloc: print message only ifndef NDEBUG
Signed-off-by: Lukasz Dorau <[email protected]>
1 parent 4febe93 commit 35ad751

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/base_alloc/base_alloc_global.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,11 @@ void *umf_ba_global_alloc(size_t size) {
8686
util_init_once(&ba_is_initialized, umf_ba_create_global);
8787

8888
if (size > BASE_ALLOC.ac_sizes[NUM_ALLOCATION_CLASSES - 1]) {
89+
#ifndef NDEBUG
8990
fprintf(stderr,
9091
"base_alloc: allocation size larger than the biggest "
9192
"allocation class. Falling back to OS memory allocation.\n");
93+
#endif
9294
return ba_os_alloc(size);
9395
}
9496

0 commit comments

Comments
 (0)