printf portability fixes

This commit is contained in:
Evan Miller
2020-08-04 17:24:04 -04:00
parent 8755c26637
commit 446b92b2c8
3 changed files with 16 additions and 10 deletions

View File

@@ -372,7 +372,7 @@ static ssize_t _mdb_read_pg(MdbHandle *mdb, void *pg_buf, unsigned long pg)
fstat(mdb->f->fd, &status);
if (status.st_size < offset) {
fprintf(stderr,"offset %jd is beyond EOF\n",(intmax_t)offset);
fprintf(stderr,"offset %lld is beyond EOF\n",(long long)offset);
return 0;
}
if (mdb->stats && mdb->stats->collect)