devtools/decodemsg: fix printing of wireaddr.

printwire_ routines are supposed to print!  And they're only needed
inside devtools/.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2022-03-22 19:19:13 +10:30
parent 6f7d51ee68
commit e36d4d1143
4 changed files with 7 additions and 6 deletions

View File

@@ -27,6 +27,11 @@ void printwire_u64(const char *fieldname, const u64 *v)
printf("%"PRIu64"\n", *v);
}
void printwire_wireaddr(const char *fieldname, const struct wireaddr *wireaddr)
{
printf("%s\n", fmt_wireaddr(tmpctx, wireaddr));
}
/* Returns false if we ran out of data. */
static bool print_hexstring(const u8 **cursor, size_t *plen, size_t len)
{