gcc format strings: http2

This commit is contained in:
Andy Green 2017-02-05 22:48:12 +08:00
parent 7df395695b
commit fdb25fcd6e
2 changed files with 2 additions and 2 deletions

View 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;
}

View 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
}