Skip to content

Commit 3c2df1b

Browse files
committed
h2-fixes
1 parent 0fc81d2 commit 3c2df1b

4 files changed

Lines changed: 10 additions & 10 deletions

File tree

lib/core-net/private-lib-core-net.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1537,7 +1537,7 @@ lws_prepare_access_log_info(struct lws *wsi, char *uri_ptr, int len, int meth);
15371537

15381538
#if defined(_DEBUG)
15391539
void
1540-
lws_wsi_txc_describe(struct lws_tx_credit *txc, const char *at, uint32_t sid);
1540+
lws_wsi_txc_describe(struct lws_tx_credit *txc, const char *at, uint64_t sid);
15411541
#else
15421542
#define lws_wsi_txc_describe(x, y, z) { (void)x; }
15431543
#endif

lib/core-net/wsi.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1650,9 +1650,9 @@ int lws_wsi_txc_check_skint(struct lws_tx_credit *txc, int32_t tx_cr) {
16501650

16511651
#if defined(_DEBUG)
16521652
void lws_wsi_txc_describe(struct lws_tx_credit *txc, const char *at,
1653-
uint32_t sid) {
1654-
lwsl_info("%s: %p: %s: sid %d: %speer-to-us: %d, us-to-peer: %d\n", __func__,
1655-
txc, at, (int)sid, txc->skint ? "SKINT, " : "",
1653+
uint64_t sid) {
1654+
lwsl_info("%s: %p: %s: sid %llu: %speer-to-us: %d, us-to-peer: %d\n", __func__,
1655+
txc, at, (unsigned long long)sid, txc->skint ? "SKINT, " : "",
16561656
(int)txc->peer_tx_cr_est, (int)txc->tx_cr);
16571657
}
16581658
#endif

lib/roles/h2/http2.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -504,8 +504,8 @@ lws_h2_rst_stream(struct lws *wsi, uint32_t err, const char *reason)
504504
if (!pps)
505505
return 1;
506506

507-
lwsl_info("%s: RST_STREAM 0x%x, sid %d, REASON '%s'\n", __func__,
508-
(int)err, wsi->mux.my_sid, reason);
507+
lwsl_info("%s: RST_STREAM 0x%x, sid %llu, REASON '%s'\n", __func__,
508+
(int)err, (unsigned long long)wsi->mux.my_sid, reason);
509509

510510
pps->u.rs.sid = (uint32_t)wsi->mux.my_sid;
511511
pps->u.rs.err = err;
@@ -2775,8 +2775,8 @@ lws_h2_client_handshake(struct lws *wsi)
27752775
lws_wsi_tag(wsi), sid);
27762776

27772777

2778-
lwsl_info("%s: CLIENT_WAITING_TO_SEND_HEADERS: pollout (sid %d)\n",
2779-
__func__, wsi->mux.my_sid);
2778+
lwsl_info("%s: CLIENT_WAITING_TO_SEND_HEADERS: pollout (sid %llu)\n",
2779+
__func__, (unsigned long long)wsi->mux.my_sid);
27802780

27812781
p = start = buf = pt->serv_buf + LWS_PRE;
27822782
end = start + (wsi->a.context->pt_serv_buf_size / 2) - LWS_PRE - 1;

lib/roles/h2/ops-h2.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1094,8 +1094,8 @@ rops_perform_user_POLLOUT_h2(struct lws *wsi)
10941094
}
10951095
wa = wsi2; /* wsi2 is updated to point to the next element by move_child_to_tail */
10961096

1097-
lwsl_info("%s: child %s, sid %d, (wsistate 0x%x)\n",
1098-
__func__, lws_wsi_tag(w), w->mux.my_sid,
1097+
lwsl_info("%s: child %s, sid %llu, (wsistate 0x%x)\n",
1098+
__func__, lws_wsi_tag(w), (unsigned long long)w->mux.my_sid,
10991099
(unsigned int)w->wsistate);
11001100

11011101
/* priority 1: post compression-transform buffered output */

0 commit comments

Comments
 (0)