Skip to content

Commit 9aa86b9

Browse files
committed
BUILD: mux-h2/traces: fix build on 32-bit due to size of the DATA frame
Commit cf3fe1e ("MINOR: mux-h2/traces: print the size of the DATA frames") added the size of the DATA frame to the traces. Unfortunately it uses ullong instead of ulong to cast a pointer, which breaks the build on 32-bit platforms. Let's just switch it to ulong which works on both.
1 parent 278b961 commit 9aa86b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mux_h2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ static void h2_trace(enum trace_level level, uint64_t mask, const struct trace_s
632632
}
633633

634634
if ((mask & H2_EV_RX_DATA) && level == TRACE_LEVEL_DATA)
635-
chunk_appendf(&trace_buf, " data=%llu", (ullong)a4);
635+
chunk_appendf(&trace_buf, " data=%lu", (ulong)a4);
636636
}
637637

638638
/* Let's dump decoded requests and responses right after parsing. They

0 commit comments

Comments
 (0)