Skip to content

Commit

Permalink
build: more 32-bit printf fixes.
Browse files Browse the repository at this point in the history
Reported-by: Shahana
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
  • Loading branch information
rustyrussell committed Aug 7, 2023
1 parent 34b6731 commit 84fe3dc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion channeld/channeld.c
Original file line number Diff line number Diff line change
Expand Up @@ -3349,7 +3349,7 @@ static void resume_splice_negotiation(struct peer *peer,

if (tal_count(inws) > current_psbt->num_inputs)
peer_failed_warn(peer->pps, &peer->channel_id,
"%lu too many witness elements received",
"%zu too many witness elements received",
tal_count(inws) - current_psbt->num_inputs);

/* We put the PSBT + sigs all together */
Expand Down
4 changes: 2 additions & 2 deletions common/test/run-codex32.c
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ int main(int argc, char *argv[])
for (size_t i = 0; i < ARRAY_SIZE(addr_invalid1); i++) {
parts = codex32_decode(tmpctx, NULL, addr_invalid1[i], &fail);
if (parts) {
printf("payload == %ld\n", tal_bytelen(parts->payload));
printf("payload == %zu\n", tal_bytelen(parts->payload));
abort();
} else {
assert(streq(fail, "Invalid checksum!") ||
Expand Down Expand Up @@ -473,7 +473,7 @@ int main(int argc, char *argv[])
for (size_t i = 0; i < ARRAY_SIZE(addr_invalid2); i++) {
parts = codex32_decode(tmpctx, NULL, addr_invalid2[i], &fail);
if (parts) {
printf("payload %ld\n", tal_bytelen(parts->payload));
printf("payload %zu\n", tal_bytelen(parts->payload));
abort();
} else {
assert(streq(fail, "Invalid payload!") ||
Expand Down
4 changes: 2 additions & 2 deletions plugins/renepay/test/run-payflow_map.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ static void valgrind_ok1(void)

printf("key1 = %s\n",fmt_payflow_key(local_ctx,&p1->key));
printf("key1 = %s\n",fmt_payflow_key(local_ctx,&p2->key));
printf("key hash 1 = %ld\n",payflow_key_hash(p1->key));
printf("key hash 2 = %ld\n",payflow_key_hash(p2->key));
printf("key hash 1 = %zu\n",payflow_key_hash(p1->key));
printf("key hash 2 = %zu\n",payflow_key_hash(p2->key));

payflow_map_add(map,p1); tal_add_destructor2(p1,destroy_payflow,map);
payflow_map_add(map,p2); tal_add_destructor2(p2,destroy_payflow,map);
Expand Down

0 comments on commit 84fe3dc

Please sign in to comment.