(void)fprintf(fp, "version %lu\n", (u_long)mp->version);
(void)fprintf(fp, "version %#lx\n", (u_long)mp->version);
__db_prbtree(dbp)	DB *dbp;{	static const FN mfn[] = {		{ BTM_DUP,	"duplicates" },		{ BTM_RECNO,	"recno" },		{ 0 },	};	BTMETA *mp;	BTREE *t;	EPG *epg;	FILE *fp;	RECNO *rp;	db_pgno_t i;	int ret;	t = dbp->internal;	fp = __db_prinit(NULL);	(void)fprintf(fp, "%s\nOn-page metadata:\n", DB_LINE);	i = PGNO_METADATA;	if ((ret = __bam_pget(dbp, (PAGE **)&mp, &i, 0)) != 0)		return (ret);	(void)fprintf(fp, "magic %#lx\n", (u_long)mp->magic);	(void)fprintf(fp, "version %lu\n", (u_long)mp->version);	(void)fprintf(fp, "pagesize %lu\n", (u_long)mp->pagesize);	(void)fprintf(fp, "maxkey: %lu minkey: %lu\n",	    (u_long)mp->maxkey, (u_long)mp->minkey);	(void)fprintf(fp, "free %lu\n", (u_long)mp->free);	(void)fprintf(fp, "flags %lu", (u_long)mp->flags);	__db_prflags(mp->flags, mfn);	(void)fprintf(fp, "\n");	(void)memp_fput(dbp->mpf, mp, 0);	(void)fprintf(fp, "%s\nDB_INFO:\n", DB_LINE);	(void)fprintf(fp, "bt_maxkey: %lu bt_minkey: %lu\n",	    (u_long)t->bt_maxkey, (u_long)t->bt_minkey);	(void)fprintf(fp, "bt_compare: %#lx bt_prefix: %#lx\n",	    (u_long)t->bt_compare, (u_long)t->bt_prefix);	if ((rp = t->bt_recno) != NULL) {		(void)fprintf(fp,		    "re_delim: %#lx re_pad: %#lx re_len: %lu re_source: %s\n",		    (u_long)rp->re_delim, (u_long)rp->re_pad,		    (u_long)rp->re_len,		    rp->re_source == NULL ? "" : rp->re_source);		(void)fprintf(fp,		    "cmap: %#lx smap: %#lx emap: %#lx msize: %lu\n",		    (u_long)rp->re_cmap, (u_long)rp->re_smap,		    (u_long)rp->re_emap, (u_long)rp->re_msize);	}	(void)fprintf(fp, "stack:");	for (epg = t->bt_stack; epg < t->bt_sp; ++epg)		(void)fprintf(fp, " %lu", (u_long)epg->page->pgno);	(void)fprintf(fp, "\n");	(void)fprintf(fp, "ovflsize: %lu\n", (u_long)t->bt_ovflsize);	(void)fflush(fp);	return (0);}