From 9b8bbde3e67e4baca0de4db535d724a7316e1bda Mon Sep 17 00:00:00 2001 From: Euler Taveira Date: Sun, 9 Feb 2020 12:33:20 -0300 Subject: [PATCH] Use correct format specifier uint64 should use UINT64_FORMAT instead of %lu because format specifier depends on a type probe. It suppresses a compiler warning. --- wal2json.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wal2json.c b/wal2json.c index 3624781..be170bf 100644 --- a/wal2json.c +++ b/wal2json.c @@ -740,7 +740,7 @@ pg_decode_commit_txn_v1(LogicalDecodingContext *ctx, ReorderBufferTXN *txn, elog(DEBUG2, "txn has catalog changes: yes"); else elog(DEBUG2, "txn has catalog changes: no"); - elog(DEBUG2, "my change counter: %lu ; # of changes: %lu ; # of changes in memory: %lu", data->nr_changes, txn->nentries, txn->nentries_mem); + elog(DEBUG2, "my change counter: " UINT64_FORMAT " ; # of changes: " UINT64_FORMAT " ; # of changes in memory: " UINT64_FORMAT, data->nr_changes, txn->nentries, txn->nentries_mem); elog(DEBUG2, "# of subxacts: %d", txn->nsubtxns); /* Transaction ends */