summaryrefslogtreecommitdiff
path: root/headers.c
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2012-12-11 20:17:16 +0400
committerIvan Maidanski <ivmai@mail.ru>2012-12-11 20:17:16 +0400
commit38d07c16736cd5a76bd40dccfc90d2cecdd13aaf (patch)
treeb0b21b437b44b8fe9aee42b469623864c933915e /headers.c
parent1c3d8e3f6a963c32c5365ff52a9ebc6d65c088ce (diff)
downloadbdwgc-38d07c16736cd5a76bd40dccfc90d2cecdd13aaf.tar.gz
Replace GC_COND_LOG_PRINTF calls with WARN for allocation failure messages
* alloc.c (GC_expand_hp_inner): Replace GC_COND_LOG_PRINTF call to WARN() call (with WARN_PRIdPTR argument type format specifier) for the message about failure. * headers.c (GC_scratch_alloc): Likewise. * mark.c (GC_mark_some, alloc_mark_stack): Likewise.
Diffstat (limited to 'headers.c')
-rw-r--r--headers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/headers.c b/headers.c
index d650fe78..8e92e384 100644
--- a/headers.c
+++ b/headers.c
@@ -144,7 +144,7 @@ GC_INNER ptr_t GC_scratch_alloc(size_t bytes)
result = (ptr_t)GET_MEM(bytes_to_get);
GC_add_to_our_memory(result, bytes_to_get);
if (result == 0) {
- GC_COND_LOG_PRINTF("Out of memory - trying to allocate less\n");
+ WARN("Out of memory - trying to allocate less\n", 0);
scratch_free_ptr -= bytes;
bytes_to_get = bytes;
# ifdef USE_MMAP