From 125d63e1cc33d01d9c7c5195d38a919d9be4adb5 Mon Sep 17 00:00:00 2001 From: Vasil Dimov Date: Thu, 9 Jan 2020 17:52:29 +0100 Subject: [PATCH] connectd: use PRIu8 for printing u8 instead of %d Changelog-None --- connectd/tor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/connectd/tor.c b/connectd/tor.c index 7b99eab67..ba5d8f395 100644 --- a/connectd/tor.c +++ b/connectd/tor.c @@ -6,6 +6,7 @@ #include #include #include +#include #include #include #include @@ -64,7 +65,7 @@ static const char* socks5strerror(const tal_t *ctx, u8 code) case 8: return tal_strdup(ctx, "address type not supported"); } - return tal_fmt(ctx, "unknown error: %d", code); + return tal_fmt(ctx, "unknown error: %" PRIu8, code); } static struct io_plan *connect_finish2(struct io_conn *conn,