Skip to content

Commit

Permalink
Use correct format specifier
Browse files Browse the repository at this point in the history
uint64 should use UINT64_FORMAT instead of %lu because format specifier
depends on a type probe. It suppresses a compiler warning.
  • Loading branch information
Euler Taveira committed Feb 9, 2020
1 parent 695696d commit 9b8bbde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wal2json.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 9b8bbde

Please sign in to comment.