mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user