From 274f0af88762b19bd4eef77efc27f9d91ad081cb Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Fri, 6 Sep 2024 16:32:47 +0900 Subject: [PATCH] Debug print only in Debug builds --- src/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.c b/src/main.c index 15fdb3c..1a883e7 100644 --- a/src/main.c +++ b/src/main.c @@ -128,6 +128,7 @@ int main(int argc, char **argv) { continue; } // DEBUG print received buf. +#ifndef NDEBUG for (unsigned int idx = 0; idx < C_SIMPLE_HTTP_RECV_BUF_SIZE && idx < read_ret; ++idx) { @@ -139,6 +140,7 @@ int main(int argc, char **argv) { } } puts(""); +#endif size_t response_size = 0; enum C_SIMPLE_HTTP_ResponseCode response_code;