diff --git a/hostan.c b/hostan.c index 02f2774..4de8742 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 7cdb2e8..4110cd8 100644 --- a/xio-openssl.c +++ b/xio-openssl.c @@ -982,7 +982,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 7e86d6f..24988e5 100644 --- a/xio-proxy.c +++ b/xio-proxy.c @@ -415,7 +415,7 @@ int _xioopen_proxy_connect(struct single *xfd, Info("sending \"\\r\\n\""); if (writefull(xfd->wfd, "\r\n", 2) < 0) { - Msg2(level, "write(%d, %p, "F_Zu"): %s", + Msg2(level, "write(%d, \"\\r\\n\", 2): %s", xfd->wfd, strerror(errno)); if (Close(xfd->wfd) < 0) { Info2("close(%d): %s", xfd->wfd, strerror(errno));