From 48422d4c0773bc55e6115846d8fbe7d14a783b0a Mon Sep 17 00:00:00 2001 From: hugoc Date: Sun, 10 Dec 2023 16:03:04 +0100 Subject: [PATCH] add dump_buffer in debug --- src/debug.c | 8 ++++++++ src/debug.h | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/debug.c b/src/debug.c index 314aadd..cc52fc9 100644 --- a/src/debug.c +++ b/src/debug.c @@ -22,6 +22,14 @@ void dump_proxy_chain(proxy_data *pchain, unsigned int count) { } } +void dump_buffer(unsigned char * data, size_t len){ + printf("buffer_dump["); + for(int i=0; i