From 34842d7492b728349f6a6898e3893b08d70625fa Mon Sep 17 00:00:00 2001 From: honjane Date: Thu, 9 Mar 2017 13:17:07 +0800 Subject: [PATCH] http2: fix log compile errors --- lib/http2.c | 2 +- lib/output.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/http2.c b/lib/http2.c index c020c7ed..74065132 100644 --- a/lib/http2.c +++ b/lib/http2.c @@ -169,7 +169,7 @@ int lws_http2_frame_write(struct lws *wsi, int type, int flags, *p++ = sid >> 8; *p++ = sid; - lwsl_info("%s: %p (eff %p). type %d, flags 0x%x, sid=%d, len=%d\n", + lwsl_info("%s: %p (eff %p). type %d, flags 0x%x, sid=%d, len=%d, tx_credit=%d\n", __func__, wsi, wsi_eff, type, flags, sid, len, wsi->u.http2.tx_credit); diff --git a/lib/output.c b/lib/output.c index efc9573e..0e5fcfde 100644 --- a/lib/output.c +++ b/lib/output.c @@ -492,7 +492,7 @@ send_raw: wsi->u.http.content_length) { wsi->u.http.content_remain -= len; lwsl_info("%s: content_remain = %lu\n", __func__, - wsi->u.http.content_remain); + (unsigned long)wsi->u.http.content_remain); if (!wsi->u.http.content_remain) { lwsl_info("%s: selecting final write mode\n", __func__); wp = LWS_WRITE_HTTP_FINAL;