From a9005518154432073e3c16b41a79ffa08664b14a Mon Sep 17 00:00:00 2001 From: practicalswift Date: Wed, 10 Jan 2018 09:46:12 +0100 Subject: [PATCH] Use tal_hex(...) instead of tal_hexstr(...) --- lightningd/subd.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lightningd/subd.c b/lightningd/subd.c index 9e31039a0..8efbbcabc 100644 --- a/lightningd/subd.c +++ b/lightningd/subd.c @@ -347,9 +347,7 @@ static void subdaemon_malformed_msg(struct subd *sd, const u8 *msg) { log_broken(sd->log, "%i: malformed string '%.s'", fromwire_peektype(msg), - tal_hexstr(msg, - msg + sizeof(be16), - tal_count(msg) - sizeof(be16))); + tal_hex(msg, msg)); #if DEVELOPER if (sd->ld->dev_subdaemon_fail)