diff --git a/hostan.c b/hostan.c index 03e08fc..5957c29 100644 --- a/hostan.c +++ b/hostan.c @@ -67,7 +67,7 @@ static int iffan(FILE *outfile) { strcpy(ifr.ifr_name, ifp->ifr_name); if (Ioctl(s, SIOCGIFINDEX, &ifr) < 0) { Error3("ioctl(%d, SIOCGIFINDEX, {\"%s\"}): %s", - s, &ifr.ifr_name, strerror(errno)); + s, ifr.ifr_name, strerror(errno)); return 1; } #if HAVE_STRUCT_IFREQ_IFR_INDEX diff --git a/xio-openssl.c b/xio-openssl.c index 2fda933..02186a3 100644 --- a/xio-openssl.c +++ b/xio-openssl.c @@ -863,7 +863,7 @@ int } else { if (SSL_CTX_set_tmp_dh(*ctx, dh) <= 0) { while (err = ERR_get_error()) { - Warn1("SSL_CTX_set_tmp_dh(%p, %p): %s", + Warn3("SSL_CTX_set_tmp_dh(%p, %p): %s", *ctx, dh, ERR_error_string(err, NULL)); } Error2("SSL_CTX_set_tmp_dh(%p, %p) failed", *ctx, dh); diff --git a/xio-proxy.c b/xio-proxy.c index fb08d28..83a2f50 100644 --- a/xio-proxy.c +++ b/xio-proxy.c @@ -337,7 +337,7 @@ int _xioopen_proxy_connect(struct single *xfd, Info("sending \"\\r\\n\""); if (writefull(xfd->fd, "\r\n", 2) < 0) { - Msg2(level, "write(%d, %p, "F_Zu"): %s", + Msg2(level, "write(%d, \"\\r\\n\", 2): %s", xfd->fd, strerror(errno)); if (Close(xfd->fd) < 0) { Info2("close(%d): %s", xfd->fd, strerror(errno));