Commit 2edf9c8d authored by Yoni Fogel's avatar Yoni Fogel

Addresses #1510. 32 bit port of [10889]

git-svn-id: file:///svn/toku/tokudb@10911 c7de825b-a66e-492c-adef-691d508d4ae1
parent 2c59699f
...@@ -427,7 +427,7 @@ toku_serialize_translation_to_wbuf_unlocked(BLOCK_TABLE bt, struct wbuf *w, ...@@ -427,7 +427,7 @@ toku_serialize_translation_to_wbuf_unlocked(BLOCK_TABLE bt, struct wbuf *w,
u_int64_t size_translation = calculate_size_on_disk(t); u_int64_t size_translation = calculate_size_on_disk(t);
assert((int64_t)size_translation==t->block_translation[b.b].size); assert((int64_t)size_translation==t->block_translation[b.b].size);
if (0) if (0)
printf("%s:%d writing translation table of size_translation %ld at %ld\n", __FILE__, __LINE__, size_translation, t->block_translation[b.b].u.diskoff); printf("%s:%d writing translation table of size_translation %"PRIu64" at %"PRId64"\n", __FILE__, __LINE__, size_translation, t->block_translation[b.b].u.diskoff);
wbuf_init(w, toku_malloc(size_translation), size_translation); wbuf_init(w, toku_malloc(size_translation), size_translation);
assert(w->size==size_translation); assert(w->size==size_translation);
} }
...@@ -436,7 +436,7 @@ toku_serialize_translation_to_wbuf_unlocked(BLOCK_TABLE bt, struct wbuf *w, ...@@ -436,7 +436,7 @@ toku_serialize_translation_to_wbuf_unlocked(BLOCK_TABLE bt, struct wbuf *w,
int64_t i; int64_t i;
for (i=0; i<t->smallest_never_used_blocknum.b; i++) { for (i=0; i<t->smallest_never_used_blocknum.b; i++) {
if (0) if (0)
printf("%s:%d %ld,%ld\n", __FILE__, __LINE__, t->block_translation[i].u.diskoff, t->block_translation[i].size); printf("%s:%d %"PRId64",%"PRId64"\n", __FILE__, __LINE__, t->block_translation[i].u.diskoff, t->block_translation[i].size);
wbuf_DISKOFF(w, t->block_translation[i].u.diskoff); wbuf_DISKOFF(w, t->block_translation[i].u.diskoff);
wbuf_DISKOFF(w, t->block_translation[i].size); wbuf_DISKOFF(w, t->block_translation[i].size);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment