Makefile: add generated packet names.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2016-05-26 15:25:24 +09:30
parent fabdcaf62b
commit f43cc72d6a
6 changed files with 23 additions and 5 deletions

View File

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