]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Merge r9529 (better memalign abort message) from the DARWIN branch.
authorNicholas Nethercote <njn@valgrind.org>
Tue, 14 Apr 2009 23:43:15 +0000 (23:43 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Tue, 14 Apr 2009 23:43:15 +0000 (23:43 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9530

coregrind/m_mallocfree.c

index 3624970890f67613ffd56b8a55bec984681896eb..3c18a4307de2dfce2a6e34a7b2d0bbb737a13cfb 100644 (file)
@@ -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*/
    }