summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorSusan LoVerso <sue@wiredtiger.com>2014-07-29 11:57:25 -0400
committerSusan LoVerso <sue@wiredtiger.com>2014-07-29 11:57:25 -0400
commita45314e982a662c6ff64261b2a408e9a548856da (patch)
treec4e25ea53bf0ecf74504078cf4e86ef61c833b62 /examples
parent7b0a8a2992b50bd7daf12ef7fc3ade8902bf0faa (diff)
downloadmongo-a45314e982a662c6ff64261b2a408e9a548856da.tar.gz
Clean up and fix warnings.
Diffstat (limited to 'examples')
-rw-r--r--examples/c/ex_log.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/examples/c/ex_log.c b/examples/c/ex_log.c
index 6529621194c..3c25cd24507 100644
--- a/examples/c/ex_log.c
+++ b/examples/c/ex_log.c
@@ -67,9 +67,9 @@ walk_log(WT_SESSION *session)
&optype, &log_reck, &log_recv);
/*! [log cursor get_value] */
printf("LSN [%d][%" PRIu64
- "]: Rectype %d Optype %d Size %" PRIu64 "\n",
+ "]: record type %d optype %d size %" PRIu64 "\n",
lsn.file, lsn.offset, rectype,
- optype, (u_long)log_recv.size);
+ optype, (uint64_t)log_recv.size);
}
cursor->reset(cursor);
/*! [log cursor set_key] */
@@ -82,9 +82,9 @@ walk_log(WT_SESSION *session)
ret = cursor->get_value(cursor, &txnid, &rectype,
&optype, &log_reck, &log_recv);
printf("Searched LSN [%d][%" PRIu64
- "]: Rectype %d Optype %d Size %" PRIu64 "\n",
+ "]: record type %d optype %d size %" PRIu64 "\n",
lsnsave.file, lsnsave.offset, rectype,
- optype, (u_long)log_recv.size);
+ optype, (uint64_t)log_recv.size);
ret = cursor->get_key(cursor, &lsn.file, &lsn.offset);
assert(lsnsave.file == lsn.file && lsnsave.offset == lsn.offset);
cursor->close(cursor);
@@ -119,9 +119,9 @@ step_log(WT_SESSION *session)
&optype, &log_reck, &log_recv);
/*! [log step get_value] */
printf("LSN [%d][%" PRIu64
- "].%d: Rectype %d Optype %d Size %" PRIu64 "\n",
+ "].%d: record type %d optype %d size %" PRIu64 "\n",
lsn.file, lsn.offset, opcount, rectype,
- optype, (u_long)log_recv.size);
+ optype, (uint64_t)log_recv.size);
}
cursor->reset(cursor);
/*! [log step set_key] */
@@ -145,10 +145,10 @@ step_log(WT_SESSION *session)
ret = cursor->get_value(cursor, &txnid, &rectype,
&optype, &log_reck, &log_recv);
printf("Searched LSN [%d][%" PRIu64
- "].%d: Rectype %d Optype %d Txnid %" PRIu64
- " Size %" PRIu64 "\n",
+ "].%d: record type %d optype %d txnid %" PRIu64
+ " size %" PRIu64 "\n",
lsn.file, lsn.offset, opcount, rectype, optype,
- txnid, (u_long)log_recv.size);
+ txnid, (uint64_t)log_recv.size);
ret = cursor->next(cursor);
if (ret != 0)
break;