Changeset: 1ff25e249416 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=1ff25e249416
Modified Files:
gdk/gdk_heap.mx
Branch: Apr2011
Log Message:
for printing type size_t, we use SZFMT, not VARFMT:
changeset 0f14872541a4 introduced VARFMT to print var_t.
changeset 9e6d9250ed63 replaced var_t by size_t in several places,
without replacing VARFMT by SZFMT in the respective format strings.
diffs (48 lines):
diff --git a/gdk/gdk_heap.mx b/gdk/gdk_heap.mx
--- a/gdk/gdk_heap.mx
+++ b/gdk/gdk_heap.mx
@@ -976,7 +976,7 @@
HEADER *hheader = HEAP_index(heap, 0, HEADER);
#ifdef TRACE
- THRprintf(GDKout, "#Enter malloc with " VARFMT " bytes\n", nbytes);
+ THRprintf(GDKout, "#Enter malloc with " SZFMT " bytes\n", nbytes);
#endif
/* add space for size field */
@@ -996,7 +996,7 @@
blockp = HEAP_index(heap, block, CHUNK);
#ifdef TRACE
- THRprintf(GDKout, "#block " VARFMT " is " VARFMT " bytes\n",
block, blockp->size);
+ THRprintf(GDKout, "#block " SZFMT " is " SZFMT " bytes\n",
block, blockp->size);
#endif
if ((trail != 0) && (block <= trail))
GDKfatal("HEAP_malloc: Free list is not orderered\n");
@@ -1036,7 +1036,7 @@
trailp = HEAP_index(heap, trail, CHUNK);
#ifdef TRACE
- THRprintf(GDKout, "#New block made at pos " VARFMT " with size
" SZFMT "\n", block, heap->size - block);
+ THRprintf(GDKout, "#New block made at pos " SZFMT " with size "
SZFMT "\n", block, heap->size - block);
#endif
blockp->next = 0;
@@ -1223,7 +1223,7 @@
if ((block <= prevblock) && (block != 0)) {
GDKerror("HEAP_check: Freelist is not ordered\n");
} else if (block <= 0 || block > heap->free) {
- GDKerror("HEAP_check: Entry freelist corrupt: block "
VARFMT " not in heap\n", block);
+ GDKerror("HEAP_check: Entry freelist corrupt: block "
SZFMT " not in heap\n", block);
} else {
freemask[pos] |= mask;
continue;
@@ -1264,7 +1264,7 @@
int mask = 1 << (idx & 31);
if (freemask[pos] & mask) {
- GDKerror("HEAP_check: Entry freelist corrupt: block "
VARFMT " not in blocklist\n", block);
+ GDKerror("HEAP_check: Entry freelist corrupt: block "
SZFMT " not in blocklist\n", block);
goto xit;
}
}
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list