gcc format strings: http2
authorAndy Green <andy@warmcat.com>
Sun, 5 Feb 2017 14:48:12 +0000 (22:48 +0800)
committerAndy Green <andy@warmcat.com>
Mon, 6 Feb 2017 16:51:25 +0000 (00:51 +0800)
lib/http2.c
lib/ssl-http2.c

index ea94940..39aa989 100644 (file)
@@ -176,7 +176,7 @@ int lws_http2_frame_write(struct lws *wsi, int type, int flags,
        if (type == LWS_HTTP2_FRAME_TYPE_DATA) {
                if (wsi->u.http2.tx_credit < len)
                        lwsl_err("%s: %p: sending payload len %d"
-                                " but tx_credit only %d!\n", len,
+                                " but tx_credit only %d!\n", __func__, wsi, len,
                                 wsi->u.http2.tx_credit);
                wsi->u.http2.tx_credit -= len;
        }
index f03ee60..eb3d208 100644 (file)
@@ -100,7 +100,7 @@ lws_context_init_http2_ssl(struct lws_vhost *vhost)
        lwsl_notice(" HTTP2 / ALPN enabled\n");
 #else
        lwsl_notice(
-               " HTTP2 / ALPN configured but not supported by OpenSSL 0x%x\n",
+               " HTTP2 / ALPN configured but not supported by OpenSSL 0x%lx\n",
                    OPENSSL_VERSION_NUMBER);
 #endif // OPENSSL_VERSION_NUMBER >= 0x10002000L
 }