http2: fix log compile errors
authorhonjane <chun_2325@qq.com>
Thu, 9 Mar 2017 05:17:07 +0000 (13:17 +0800)
committerAndy Green <andy@warmcat.com>
Thu, 9 Mar 2017 05:29:50 +0000 (13:29 +0800)
lib/http2.c
lib/output.c

index c020c7ed7287b251ba38f505c26fef3b0ff170dc..7406513212b292b0b0ec4babb664c2848936b684 100644 (file)
@@ -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);
 
index efc9573e35e332a1474c5fbb0bf86da442895819..0e5fcfde247beeb05a4efc6884c98d43eb8f82ed 100644 (file)
@@ -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;