mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-25 16:54:20 +01:00
Makefile: add generated packet names.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -272,7 +272,7 @@ static struct io_plan *decrypt_body(struct io_conn *conn, struct peer *peer)
|
||||
log_debug(peer->log, "Received packet LEN=%u, type=%s",
|
||||
le32_to_cpu(iod->hdr_in.length),
|
||||
peer->inpkt->pkt_case == PKT__PKT_AUTH ? "PKT_AUTH"
|
||||
: input_name(peer->inpkt->pkt_case));
|
||||
: pkt_name(peer->inpkt->pkt_case));
|
||||
|
||||
return iod->cb(conn, peer);
|
||||
}
|
||||
|
||||
@@ -425,7 +425,7 @@ void queue_pkt_close_signature(struct peer *peer)
|
||||
|
||||
Pkt *pkt_err_unexpected(struct peer *peer, const Pkt *pkt)
|
||||
{
|
||||
return pkt_err(peer, "Unexpected packet %s", state_name(pkt->pkt_case));
|
||||
return pkt_err(peer, "Unexpected packet %s", pkt_name(pkt->pkt_case));
|
||||
}
|
||||
|
||||
/* Process various packets: return an error packet on failure. */
|
||||
|
||||
@@ -170,7 +170,7 @@ static void state_single(struct peer *peer,
|
||||
|
||||
if (tal_count(peer->outpkt) > old_outpkts) {
|
||||
Pkt *outpkt = peer->outpkt[old_outpkts].pkt;
|
||||
log_add(peer->log, " (out %s)", input_name(outpkt->pkt_case));
|
||||
log_add(peer->log, " (out %s)", pkt_name(outpkt->pkt_case));
|
||||
}
|
||||
if (broadcast)
|
||||
broadcast_tx(peer, broadcast);
|
||||
|
||||
Reference in New Issue
Block a user