Skip to content

Commit 6e7397a

Browse files
authored
Print printable characters in cfg.ProtocolDebug (#1738)
1 parent c16b1b2 commit 6e7397a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/internal/ebpf/common/tcp_detect_transform.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ func ReadTCPRequestIntoSpan(cfg *config.EBPFTracer, record *ringbuf.Record, filt
3737
b := event.Buf[:l]
3838

3939
if cfg.ProtocolDebug {
40-
fmt.Printf("[>] %v\n", b)
41-
fmt.Printf("[<] %v\n", event.Rbuf[:rl])
40+
fmt.Printf("[>] %q\n", b)
41+
fmt.Printf("[<] %q\n", event.Rbuf[:rl])
4242
}
4343

4444
// Check if we have a SQL statement

0 commit comments

Comments
 (0)