summaryrefslogtreecommitdiff
path: root/src/tchdb/tests/tchmttest.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tchdb/tests/tchmttest.c')
-rw-r--r--src/tchdb/tests/tchmttest.c62
1 files changed, 31 insertions, 31 deletions
diff --git a/src/tchdb/tests/tchmttest.c b/src/tchdb/tests/tchmttest.c
index 4f5c1ef..1ebecfb 100644
--- a/src/tchdb/tests/tchmttest.c
+++ b/src/tchdb/tests/tchmttest.c
@@ -196,27 +196,27 @@ static void eprint(TCHDB *hdb, int line, const char *func) {
/* print members of hash database */
static void mprint(TCHDB *hdb) {
- iprintf("bucket number: %" PRIdMAX "\n", (int64_t) tchdbbnum(hdb));
- iprintf("used bucket number: %" PRIdMAX "\n", (int64_t) tchdbbnumused(hdb));
+ iprintf("bucket number: %" PRId64 "\n", (int64_t) tchdbbnum(hdb));
+ iprintf("used bucket number: %" PRId64 "\n", (int64_t) tchdbbnumused(hdb));
#ifndef NDEBUG
if (hdb->cnt_writerec < 0) return;
- iprintf("cnt_writerec: %" PRIdMAX "\n", (int64_t) hdb->cnt_writerec);
- iprintf("cnt_reuserec: %" PRIdMAX "\n", (int64_t) hdb->cnt_reuserec);
- iprintf("cnt_moverec: %" PRIdMAX "\n", (int64_t) hdb->cnt_moverec);
- iprintf("cnt_readrec: %" PRIdMAX "\n", (int64_t) hdb->cnt_readrec);
- iprintf("cnt_searchfbp: %" PRIdMAX "\n", (int64_t) hdb->cnt_searchfbp);
- iprintf("cnt_insertfbp: %" PRIdMAX "\n", (int64_t) hdb->cnt_insertfbp);
- iprintf("cnt_splicefbp: %" PRIdMAX "\n", (int64_t) hdb->cnt_splicefbp);
- iprintf("cnt_dividefbp: %" PRIdMAX "\n", (int64_t) hdb->cnt_dividefbp);
- iprintf("cnt_mergefbp: %" PRIdMAX "\n", (int64_t) hdb->cnt_mergefbp);
- iprintf("cnt_reducefbp: %" PRIdMAX "\n", (int64_t) hdb->cnt_reducefbp);
- iprintf("cnt_appenddrp: %" PRIdMAX "\n", (int64_t) hdb->cnt_appenddrp);
- iprintf("cnt_deferdrp: %" PRIdMAX "\n", (int64_t) hdb->cnt_deferdrp);
- iprintf("cnt_flushdrp: %" PRIdMAX "\n", (int64_t) hdb->cnt_flushdrp);
- iprintf("cnt_adjrecc: %" PRIdMAX "\n", (int64_t) hdb->cnt_adjrecc);
- iprintf("cnt_defrag: %" PRIdMAX "\n", (int64_t) hdb->cnt_defrag);
- iprintf("cnt_shiftrec: %" PRIdMAX "\n", (int64_t) hdb->cnt_shiftrec);
- iprintf("cnt_trunc: %" PRIdMAX "\n", (int64_t) hdb->cnt_trunc);
+ iprintf("cnt_writerec: %" PRId64 "\n", (int64_t) hdb->cnt_writerec);
+ iprintf("cnt_reuserec: %" PRId64 "\n", (int64_t) hdb->cnt_reuserec);
+ iprintf("cnt_moverec: %" PRId64 "\n", (int64_t) hdb->cnt_moverec);
+ iprintf("cnt_readrec: %" PRId64 "\n", (int64_t) hdb->cnt_readrec);
+ iprintf("cnt_searchfbp: %" PRId64 "\n", (int64_t) hdb->cnt_searchfbp);
+ iprintf("cnt_insertfbp: %" PRId64 "\n", (int64_t) hdb->cnt_insertfbp);
+ iprintf("cnt_splicefbp: %" PRId64 "\n", (int64_t) hdb->cnt_splicefbp);
+ iprintf("cnt_dividefbp: %" PRId64 "\n", (int64_t) hdb->cnt_dividefbp);
+ iprintf("cnt_mergefbp: %" PRId64 "\n", (int64_t) hdb->cnt_mergefbp);
+ iprintf("cnt_reducefbp: %" PRId64 "\n", (int64_t) hdb->cnt_reducefbp);
+ iprintf("cnt_appenddrp: %" PRId64 "\n", (int64_t) hdb->cnt_appenddrp);
+ iprintf("cnt_deferdrp: %" PRId64 "\n", (int64_t) hdb->cnt_deferdrp);
+ iprintf("cnt_flushdrp: %" PRId64 "\n", (int64_t) hdb->cnt_flushdrp);
+ iprintf("cnt_adjrecc: %" PRId64 "\n", (int64_t) hdb->cnt_adjrecc);
+ iprintf("cnt_defrag: %" PRId64 "\n", (int64_t) hdb->cnt_defrag);
+ iprintf("cnt_shiftrec: %" PRId64 "\n", (int64_t) hdb->cnt_shiftrec);
+ iprintf("cnt_trunc: %" PRId64 "\n", (int64_t) hdb->cnt_trunc);
#endif
}
@@ -685,8 +685,8 @@ static int procwrite(const char *path, int tnum, int rnum, int bnum, int apow, i
}
}
}
- iprintf("record number: %" PRIuMAX "\n", (uint64_t) tchdbrnum(hdb));
- iprintf("size: %" PRIuMAX "\n", (uint64_t) tchdbfsiz(hdb));
+ iprintf("record number: %" PRIu64 "\n", (uint64_t) tchdbrnum(hdb));
+ iprintf("size: %" PRIu64 "\n", (uint64_t) tchdbfsiz(hdb));
mprint(hdb);
sysprint();
if (!tchdbclose(hdb)) {
@@ -766,8 +766,8 @@ static int procread(const char *path, int tnum, int rcnum, int xmsiz, int dfunit
}
}
}
- iprintf("record number: %" PRIuMAX "\n", (uint64_t) tchdbrnum(hdb));
- iprintf("size: %" PRIuMAX "\n", (uint64_t) tchdbfsiz(hdb));
+ iprintf("record number: %" PRIu64 "\n", (uint64_t) tchdbrnum(hdb));
+ iprintf("size: %" PRIu64 "\n", (uint64_t) tchdbfsiz(hdb));
mprint(hdb);
sysprint();
if (!tchdbclose(hdb)) {
@@ -845,8 +845,8 @@ static int procremove(const char *path, int tnum, int rcnum, int xmsiz, int dfun
}
}
}
- iprintf("record number: %" PRIuMAX "\n", (uint64_t) tchdbrnum(hdb));
- iprintf("size: %" PRIuMAX "\n", (uint64_t) tchdbfsiz(hdb));
+ iprintf("record number: %" PRIu64 "\n", (uint64_t) tchdbrnum(hdb));
+ iprintf("size: %" PRIu64 "\n", (uint64_t) tchdbfsiz(hdb));
mprint(hdb);
sysprint();
if (!tchdbclose(hdb)) {
@@ -972,8 +972,8 @@ static int procwicked(const char *path, int tnum, int rnum, int opts, int omode,
if (rnum % 50 > 0) iprintf(" (%08d)\n", rnum);
}
tcmapdel(map);
- iprintf("record number: %" PRIuMAX "\n", (uint64_t) tchdbrnum(hdb));
- iprintf("size: %" PRIuMAX "\n", (uint64_t) tchdbfsiz(hdb));
+ iprintf("record number: %" PRIu64 "\n", (uint64_t) tchdbrnum(hdb));
+ iprintf("size: %" PRIu64 "\n", (uint64_t) tchdbfsiz(hdb));
mprint(hdb);
sysprint();
if (!tchdbclose(hdb)) {
@@ -1059,8 +1059,8 @@ static int proctypical(const char *path, int tnum, int rnum, int bnum, int apow,
}
}
}
- iprintf("record number: %" PRIuMAX "\n", (uint64_t) tchdbrnum(hdb));
- iprintf("size: %" PRIuMAX "\n", (uint64_t) tchdbfsiz(hdb));
+ iprintf("record number: %" PRIu64 "\n", (uint64_t) tchdbrnum(hdb));
+ iprintf("size: %" PRIu64 "\n", (uint64_t) tchdbfsiz(hdb));
mprint(hdb);
sysprint();
if (!tchdbclose(hdb)) {
@@ -1136,8 +1136,8 @@ static int procrace(const char *path, int tnum, int rnum, int bnum, int apow, in
}
}
}
- iprintf("record number: %" PRIuMAX "\n", (uint64_t) tchdbrnum(hdb));
- iprintf("size: %" PRIuMAX "\n", (uint64_t) tchdbfsiz(hdb));
+ iprintf("record number: %" PRIu64 "\n", (uint64_t) tchdbrnum(hdb));
+ iprintf("size: %" PRIu64 "\n", (uint64_t) tchdbfsiz(hdb));
mprint(hdb);
sysprint();
if (!tchdbclose(hdb)) {