Skip to content

Commit a55585e

Browse files
committed
lightningd: fix format specifier for bitcoin_tx_weight in splice log.
bitcoin_tx_weight() returns size_t, so use %zu instead of %lu to avoid a -Wformat error under -Werror on platforms where size_t != unsigned long. Changelog-Fixed: Builds on linux/amd64 to push to Dockerhub
1 parent 869ffc6 commit a55585e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lightningd/channel_control.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ static void send_splice_tx(struct channel *channel,
621621
u8* tx_bytes = linearize_tx(tmpctx, tx);
622622

623623
log_debug(channel->log,
624-
"Broadcasting splice tx %s for channel %s. Final weight %lu",
624+
"Broadcasting splice tx %s for channel %s. Final weight %zu",
625625
tal_hex(tmpctx, tx_bytes),
626626
fmt_channel_id(tmpctx, &channel->cid),
627627
bitcoin_tx_weight(tx));

0 commit comments

Comments
 (0)