From 698c99b62c90de9c95b36db3c65f57deadddd212 Mon Sep 17 00:00:00 2001 From: Nicholas Nethercote Date: Tue, 14 Apr 2009 23:43:15 +0000 Subject: [PATCH] Merge r9529 (better memalign abort message) from the DARWIN branch. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9530 --- coregrind/m_mallocfree.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/coregrind/m_mallocfree.c b/coregrind/m_mallocfree.c index 3624970890..3c18a4307d 100644 --- a/coregrind/m_mallocfree.c +++ b/coregrind/m_mallocfree.c @@ -1588,8 +1588,10 @@ void* VG_(arena_memalign) ( ArenaId aid, HChar* cc, if (req_alignB < VG_MIN_MALLOC_SZB || req_alignB > 1048576 || VG_(log2)( req_alignB ) == -1 /* not a power of 2 */) { - VG_(printf)("VG_(arena_memalign)(%p, %lu, %lu)\nbad alignment", - a, req_alignB, req_pszB ); + VG_(printf)("VG_(arena_memalign)(%p, %lu, %lu)\n" + "bad alignment value %lu\n" + "(it is too small, too big, or not a power of two)", + a, req_alignB, req_pszB, req_alignB ); VG_(core_panic)("VG_(arena_memalign)"); /*NOTREACHED*/ } -- 2.47.3