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;
}
// 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;