From c36fcf1794a8c0207296a5559829b51127beb642 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sat, 10 Aug 2013 00:46:00 +0900 Subject: [PATCH] src: Print opaque_data_len of GOAWAY --- src/app_helper.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app_helper.cc b/src/app_helper.cc index 6564449e..17ea59bb 100644 --- a/src/app_helper.cc +++ b/src/app_helper.cc @@ -308,10 +308,11 @@ void print_frame(print_type ptype, nghttp2_frame *frame) break; case NGHTTP2_GOAWAY: print_frame_attr_indent(); - printf("(last_stream_id=%d, error_code=%s(%u), opaque_data=%s)\n", + printf("(last_stream_id=%d, error_code=%s(%u), opaque_data(%u)=[%s])\n", frame->goaway.last_stream_id, strstatus(frame->goaway.error_code), frame->goaway.error_code, + static_cast(frame->goaway.opaque_data_len), util::format_hex(frame->goaway.opaque_data, frame->goaway.opaque_data_len).c_str()); break;