From eae18ce973c51c8a476e59171305667077d1251a Mon Sep 17 00:00:00 2001 From: sogaiu <983021772@users.noreply.github.com> Date: Wed, 6 Oct 2021 20:34:33 +0900 Subject: [PATCH] Tweak format strings --- src/core/net.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/net.c b/src/core/net.c index 0202f226..018a340c 100644 --- a/src/core/net.c +++ b/src/core/net.c @@ -699,7 +699,7 @@ JANET_CORE_FN(cfun_net_getsockname, socklen_t slen = sizeof(ss); memset(&ss, 0, slen); if (getsockname((JSock)js->handle, (struct sockaddr *) &ss, &slen)) { - janet_panicf("Failed to get localname on %v: %s", argv[0], janet_ev_lasterr()); + janet_panicf("Failed to get localname on %v: %V", argv[0], janet_ev_lasterr()); } janet_assert(slen <= sizeof(ss), "socket address truncated"); return janet_so_getname(&ss); @@ -714,7 +714,7 @@ JANET_CORE_FN(cfun_net_getpeername, socklen_t slen = sizeof(ss); memset(&ss, 0, slen); if (getpeername((JSock)js->handle, (struct sockaddr *)&ss, &slen)) { - janet_panicf("Failed to get peername on %v: %s", argv[0], janet_ev_lasterr()); + janet_panicf("Failed to get peername on %v: %V", argv[0], janet_ev_lasterr()); } janet_assert(slen <= sizeof(ss), "socket address truncated"); return janet_so_getname(&ss);