/* * __debug_dsk_col_fix -- * Dump a WT_PAGE_COL_FIX page. */ static void __debug_dsk_col_fix(WT_DBG *ds, const WT_PAGE_HEADER *dsk) { WT_BTREE *btree; uint32_t i; uint8_t v; btree = S2BT(ds->session); WT_FIX_FOREACH(btree, dsk, v, i) { __dmsg(ds, "\t{"); __debug_hex_byte(ds, v); __dmsg(ds, "}\n"); }
/* * __debug_bytes -- * Dump a single set of bytes. */ static int __debug_bytes(WT_DBG *ds, const void *data_arg, size_t size) { size_t i; const uint8_t *data; u_char ch; for (data = data_arg, i = 0; i < size; ++i, ++data) { ch = data[0]; if (__wt_isprint(ch)) WT_RET(ds->f(ds, "%c", (int)ch)); else WT_RET(__debug_hex_byte(ds, data[0])); } return (0); }
/* * __debug_dsk_col_fix -- * Dump a WT_PAGE_COL_FIX page. */ static int __debug_dsk_col_fix(WT_DBG *ds, const WT_PAGE_HEADER *dsk) { WT_BTREE *btree; uint32_t i; uint8_t v; WT_ASSERT(ds->session, S2BT_SAFE(ds->session) != NULL); btree = S2BT(ds->session); WT_FIX_FOREACH(btree, dsk, v, i) { WT_RET(ds->f(ds, "\t{")); WT_RET(__debug_hex_byte(ds, v)); WT_RET(ds->f(ds, "}\n")); }