From e0d38508fc8b6bc3915b2235a85a068eacfb87bf Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 11 Jun 2024 18:46:31 +0200 Subject: Merging upstream version 1.62.1. Signed-off-by: Daniel Baumann --- src/app_helper.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/app_helper.cc') diff --git a/src/app_helper.cc b/src/app_helper.cc index 666d16c..2ccecbe 100644 --- a/src/app_helper.cc +++ b/src/app_helper.cc @@ -115,7 +115,7 @@ std::string strframetype(uint8_t type) { } std::string s = "extension(0x"; - s += util::format_hex(&type, 1); + s += util::format_hex(std::span{&type, 1}); s += ')'; return s; @@ -329,7 +329,7 @@ void print_frame(print_type ptype, const nghttp2_frame *frame) { case NGHTTP2_PING: print_frame_attr_indent(); fprintf(outfile, "(opaque_data=%s)\n", - util::format_hex(frame->ping.opaque_data, 8).c_str()); + util::format_hex(frame->ping.opaque_data).c_str()); break; case NGHTTP2_GOAWAY: print_frame_attr_indent(); -- cgit v1.2.3