diff options
author | drh <drh@noemail.net> | 2004-09-08 20:13:04 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2004-09-08 20:13:04 +0000 |
commit | fe63d1c98b1a8e24d2598bb03f21c27a881ce905 (patch) | |
tree | 2147712f6afded5032b1e390ecac4b38d12988d9 /src/pager.c | |
parent | 03c898807635e9a7bad70bc34e18924c69f61097 (diff) | |
download | sqlite-fe63d1c98b1a8e24d2598bb03f21c27a881ce905.tar.gz sqlite-fe63d1c98b1a8e24d2598bb03f21c27a881ce905.zip |
More changes directed at getting things to work on 64-bit platforms. (CVS 1949)
FossilOrigin-Name: 39755d216608e9d12e1055433549f820f63608a7
Diffstat (limited to 'src/pager.c')
-rw-r--r-- | src/pager.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/pager.c b/src/pager.c index d94847be5..c246ff874 100644 --- a/src/pager.c +++ b/src/pager.c @@ -18,7 +18,7 @@ ** file simultaneously, or one process from reading the database while ** another is writing. ** -** @(#) $Id: pager.c,v 1.162 2004/09/02 14:57:08 drh Exp $ +** @(#) $Id: pager.c,v 1.163 2004/09/08 20:13:05 drh Exp $ */ #include "os.h" /* Must be first to enable large file support */ #include "sqliteInt.h" @@ -304,9 +304,9 @@ static const unsigned char aJournalMagic[] = { static void pager_refinfo(PgHdr *p){ static int cnt = 0; if( !pager3_refinfo_enable ) return; - printf( - "REFCNT: %4d addr=0x%08x nRef=%d\n", - p->pgno, (int)PGHDR_TO_DATA(p), p->nRef + sqlite3DebugPrintf( + "REFCNT: %4d addr=%p nRef=%d\n", + p->pgno, PGHDR_TO_DATA(p), p->nRef ); cnt++; /* Something to set a breakpoint on */ } @@ -3169,8 +3169,8 @@ void sqlite3pager_refdump(Pager *pPager){ PgHdr *pPg; for(pPg=pPager->pAll; pPg; pPg=pPg->pNextAll){ if( pPg->nRef<=0 ) continue; - printf("PAGE %3d addr=0x%08x nRef=%d\n", - pPg->pgno, (int)PGHDR_TO_DATA(pPg), pPg->nRef); + sqlite3DebugPrintf("PAGE %3d addr=%p nRef=%d\n", + pPg->pgno, PGHDR_TO_DATA(pPg), pPg->nRef); } } #endif |