Debug print only in Debug builds

This commit is contained in:
Stephen Seo 2024-09-06 16:32:47 +09:00
parent c9c21105f6
commit 274f0af887

View file

@ -128,6 +128,7 @@ int main(int argc, char **argv) {
continue; continue;
} }
// DEBUG print received buf. // DEBUG print received buf.
#ifndef NDEBUG
for (unsigned int idx = 0; for (unsigned int idx = 0;
idx < C_SIMPLE_HTTP_RECV_BUF_SIZE && idx < read_ret; idx < C_SIMPLE_HTTP_RECV_BUF_SIZE && idx < read_ret;
++idx) { ++idx) {
@ -139,6 +140,7 @@ int main(int argc, char **argv) {
} }
} }
puts(""); puts("");
#endif
size_t response_size = 0; size_t response_size = 0;
enum C_SIMPLE_HTTP_ResponseCode response_code; enum C_SIMPLE_HTTP_ResponseCode response_code;