Skip to content

Commit 0ecc402

Browse files
committed
splice: Clean up some spammy debug messages
1 parent 79b959b commit 0ecc402

File tree

1 file changed

+3
-19
lines changed

1 file changed

+3
-19
lines changed

channeld/channeld.c

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2302,28 +2302,15 @@ static int commit_cmp(const void *a, const void *n, void *peer)
23022302
int commit_index_a = commit_index_from_msg(*(u8**)a, peer);
23032303
int commit_index_n = commit_index_from_msg(*(u8**)n, peer);
23042304

2305-
status_debug("commit_cmp a: %p, n: %p result: %d & %d",
2306-
*(u8**)a, *(u8**)n, commit_index_a, commit_index_n);
2307-
2308-
if (commit_index_a == commit_index_n) {
2309-
status_debug("commit_cmp: return 0");
2305+
if (commit_index_a == commit_index_n)
23102306
return 0;
2311-
}
2312-
23132307
/* Unrecognized commits go on the end */
2314-
if (commit_index_a == -1) {
2315-
status_debug("commit_cmp: return 1");
2308+
if (commit_index_a == -1)
23162309
return 1;
2317-
}
23182310

2319-
if (commit_index_n == -1) {
2320-
status_debug("commit_cmp: return -1");
2311+
if (commit_index_n == -1)
23212312
return -1;
2322-
}
23232313

2324-
status_debug("commit_cmp: return %d - %d = %d",
2325-
commit_index_a, commit_index_n,
2326-
commit_index_a - commit_index_n);
23272314
/* Otherwise we sort by commit_index */
23282315
return commit_index_a - commit_index_n;
23292316
}
@@ -2362,7 +2349,6 @@ static struct commitsig_info *handle_peer_commit_sig_batch(struct peer *peer,
23622349

23632350
msg_batch = tal_arr(tmpctx, const u8*, batch_size);
23642351
msg_batch[0] = msg;
2365-
status_debug("msg_batch[0]: %p", msg_batch[0]);
23662352

23672353
/* Already received commitment signed once, so start at i = 1 */
23682354
for (u16 i = 1; i < batch_size; i++) {
@@ -2378,7 +2364,6 @@ static struct commitsig_info *handle_peer_commit_sig_batch(struct peer *peer,
23782364
"Expected splice related "
23792365
"WIRE_COMMITMENT_SIGNED but got %s",
23802366
peer_wire_name(type));
2381-
status_debug("fromwire_commitment_signed(%p) splice index %d", sub_msg, (int)i);
23822367
if (!fromwire_commitment_signed(tmpctx, sub_msg,
23832368
&channel_id, &commit_sig.s,
23842369
&raw_sigs, &sub_cs_tlv))
@@ -2396,7 +2381,6 @@ static struct commitsig_info *handle_peer_commit_sig_batch(struct peer *peer,
23962381
tal_hex(sub_msg, sub_msg), i, batch_size);
23972382

23982383
msg_batch[i] = sub_msg;
2399-
status_debug("msg_batch[%d]: %p", (int)i, msg_batch[i]);
24002384
}
24012385

24022386
status_debug("Sorting the msg_batch of tal_count %d, batch_size: %d", (int)tal_count(msg_batch), (int)batch_size);

0 commit comments

Comments
 (0)