diff options
author | daan <daanl@outlook.com> | 2021-12-17 13:25:44 -0800 |
---|---|---|
committer | daan <daanl@outlook.com> | 2021-12-17 13:25:44 -0800 |
commit | 3d35147aba3463405b09821e66abfc0a1992b4c0 (patch) | |
tree | 66310f220050450b9de215444d04759da0f91fda /src/alloc-aligned.c | |
parent | abbff9c0307d0f3ac1334fe1a45a34c402ca1531 (diff) | |
parent | faf2a7020c4d3234434b165f5c27f89d7777016b (diff) |
Merge branch 'dev' into dev-slice
Diffstat (limited to 'src/alloc-aligned.c')
-rw-r--r-- | src/alloc-aligned.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/alloc-aligned.c b/src/alloc-aligned.c index f42a2e2..acf42e7 100644 --- a/src/alloc-aligned.c +++ b/src/alloc-aligned.c @@ -51,19 +51,19 @@ static void* mi_heap_malloc_zero_aligned_at(mi_heap_t* const heap, const size_t mi_assert(alignment > 0); if (mi_unlikely(alignment==0 || !_mi_is_power_of_two(alignment))) { // require power-of-two (see <https://en.cppreference.com/w/c/memory/aligned_alloc>) #if MI_DEBUG > 0 - _mi_error_message(EOVERFLOW, "aligned allocation requires the alignment to be a power-of-two (size %zu, alignment %zu)", size, alignment); + _mi_error_message(EOVERFLOW, "aligned allocation requires the alignment to be a power-of-two (size %zu, alignment %zu)\n", size, alignment); #endif return NULL; } if (mi_unlikely(alignment > MI_ALIGNED_MAX)) { // we cannot align at a boundary larger than this (or otherwise we cannot find segment headers) #if MI_DEBUG > 0 - _mi_error_message(EOVERFLOW, "aligned allocation has a maximum alignment of %zu (size %zu, alignment %zu)", MI_ALIGNED_MAX, size, alignment); + _mi_error_message(EOVERFLOW, "aligned allocation has a maximum alignment of %zu (size %zu, alignment %zu)\n", MI_ALIGNED_MAX, size, alignment); #endif return NULL; } if (mi_unlikely(size > PTRDIFF_MAX)) { // we don't allocate more than PTRDIFF_MAX (see <https://sourceware.org/ml/libc-announce/2019/msg00001.html>) #if MI_DEBUG > 0 - _mi_error_message(EOVERFLOW, "aligned allocation request is too large (size %zu, alignment %zu)", size, alignment); + _mi_error_message(EOVERFLOW, "aligned allocation request is too large (size %zu, alignment %zu)\n", size, alignment); #endif return NULL; } |