|
From: <sv...@va...> - 2009-04-14 23:39:05
|
Author: njn
Date: 2009-04-15 00:39:00 +0100 (Wed, 15 Apr 2009)
New Revision: 9529
Log:
Improve memalign() bad alignment message.
Modified:
branches/DARWIN/coregrind/m_mallocfree.c
Modified: branches/DARWIN/coregrind/m_mallocfree.c
===================================================================
--- branches/DARWIN/coregrind/m_mallocfree.c 2009-04-14 10:35:24 UTC (rev 9528)
+++ branches/DARWIN/coregrind/m_mallocfree.c 2009-04-14 23:39:00 UTC (rev 9529)
@@ -1589,8 +1589,10 @@
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*/
}
|