build: more 32-bit printf fixes.

Reported-by: Shahana
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2023-08-06 12:22:09 +09:30
parent 34b6731b82
commit 84fe3dc940
3 changed files with 5 additions and 5 deletions

View File

@@ -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 */

View File

@@ -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!") ||
@@ -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!") ||

View File

@@ -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);