diff options
author | Keith Bostic <keith@wiredtiger.com> | 2013-12-23 17:54:24 -0500 |
---|---|---|
committer | Keith Bostic <keith@wiredtiger.com> | 2013-12-23 17:55:16 -0500 |
commit | 4000a395a4d0d6aec1706e0ccb9252a9ed045618 (patch) | |
tree | 4b84c8b9256d1fcbe66099622fce5ae6367f88a9 /src/btree/bt_debug.c | |
parent | bba3fad23603258988ef5d16dcc03c1a792b5fca (diff) | |
download | mongo-4000a395a4d0d6aec1706e0ccb9252a9ed045618.tar.gz |
Make addr_size (block manager's address sizes) a size_t instead of a
uint32_t.
General review of uint32_t's, remove/cleanup where it's not necessary
to limit the type to 4B.
Diffstat (limited to 'src/btree/bt_debug.c')
-rw-r--r-- | src/btree/bt_debug.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/btree/bt_debug.c b/src/btree/bt_debug.c index 781bc3d3818..c22ca2a881b 100644 --- a/src/btree/bt_debug.c +++ b/src/btree/bt_debug.c @@ -155,7 +155,7 @@ __dmsg(WT_DBG *ds, const char *fmt, ...) /* Check if there was enough space. */ if (len < space) { - msg->size += (uint32_t)len; + msg->size += len; break; } @@ -187,7 +187,7 @@ __dmsg(WT_DBG *ds, const char *fmt, ...) */ int __wt_debug_addr(WT_SESSION_IMPL *session, - const uint8_t *addr, uint32_t addr_size, const char *ofile) + const uint8_t *addr, size_t addr_size, const char *ofile) { WT_BM *bm; WT_DECL_ITEM(buf); @@ -790,7 +790,7 @@ static int __debug_ref(WT_DBG *ds, WT_REF *ref, WT_PAGE *page) { WT_SESSION_IMPL *session; - uint32_t size; + size_t addr_size; const uint8_t *addr; session = ds->session; @@ -818,9 +818,9 @@ __debug_ref(WT_DBG *ds, WT_REF *ref, WT_PAGE *page) WT_ILLEGAL_VALUE(session); } - WT_RET(__wt_ref_info(session, page, ref, &addr, &size, NULL)); - __dmsg(ds, " %s\n", addr == NULL ? "[NoAddr]" : - __wt_addr_string(session, ds->tmp, addr, size)); + WT_RET(__wt_ref_info(session, page, ref, &addr, &addr_size, NULL)); + __dmsg(ds, " %s\n", + __wt_addr_string(session, ds->tmp, addr, addr_size)); return (0); } |