From 1bbcbd365c32b44f2d54423ece7af06ff7962217 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 1 Aug 2013 20:33:04 +0900 Subject: [PATCH] shrpx: Cast uint8_t to uint32_t to print its decimal number --- src/shrpx_http2_upstream.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shrpx_http2_upstream.cc b/src/shrpx_http2_upstream.cc index a0fa6a42..00ad14b0 100644 --- a/src/shrpx_http2_upstream.cc +++ b/src/shrpx_http2_upstream.cc @@ -274,7 +274,7 @@ void on_frame_not_send_callback(nghttp2_session *session, { auto upstream = reinterpret_cast(user_data); ULOG(WARNING, upstream) << "Failed to send control frame type=" - << frame->hd.type + << static_cast(frame->hd.type) << ", lib_error_code=" << lib_error_code << ":" << nghttp2_strerror(lib_error_code); if(frame->hd.type == NGHTTP2_HEADERS &&