Skip to content

Commit

Permalink
connectd: use PRIu8 for printing u8 instead of %d
Browse files Browse the repository at this point in the history
Changelog-None
  • Loading branch information
vasild authored and ZmnSCPxj committed Feb 3, 2020
1 parent 46f6c6b commit 125d63e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion connectd/tor.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include <common/wireaddr.h>
#include <connectd/connectd.h>
#include <connectd/tor.h>
#include <inttypes.h>
#include <netdb.h>
#include <netinet/in.h>
#include <sys/socket.h>
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 125d63e

Please sign in to comment.