Commit dcc10d90a5296b08af9d17d81271b1d632cb95b3

Thomas de Grivel 2024-09-14T00:08:12

remove debug messages

diff --git a/http/http_request.c b/http/http_request.c
index 89ffd4c..26c279f 100644
--- a/http/http_request.c
+++ b/http/http_request.c
@@ -46,7 +46,8 @@ s_tag * http_request_buf_parse_method (s_buf *buf, s_tag *dest)
   allowed_methods = allowed_methods_tag.data.list;
   buf_save_init(buf, &save);
   if (! buf_read_until_1_into_str(buf, " ", &str)) {
-    err_puts("http_request_buf_parse_method: buf_read_until_1_into_str");
+    if (false)
+      err_puts("http_request_buf_parse_method: buf_read_until_1_into_str");
     goto restore;
   }
   if (! (tmp.data.sym = sym_find(&str))) {
diff --git a/libkc3/buf.c b/libkc3/buf.c
index 5d2e29e..52675de 100644
--- a/libkc3/buf.c
+++ b/libkc3/buf.c
@@ -870,7 +870,8 @@ sw buf_read_u64 (s_buf *buf, u64 *p)
   return r;
 }
 
-s_str * buf_read_until_1_into_str(s_buf *buf, const char *end, s_str *dest)
+s_str * buf_read_until_1_into_str (s_buf *buf, const char *end,
+                                   s_str *dest)
 {
   character c;
   sw r;
@@ -879,7 +880,8 @@ s_str * buf_read_until_1_into_str(s_buf *buf, const char *end, s_str *dest)
   buf_save_init(buf, &save);
   while (1) {
     if ((r = buf_read_1(buf, end)) < 0) {
-      err_puts("buf_read_until_1_into_str: buf_read_1");
+      if (false)
+        err_puts("buf_read_until_1_into_str: buf_read_1");
       goto restore;
     }
     if (r) {