From 239fc1ea5c7a83829aa608568911391777817b74 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Tue, 20 Nov 2018 15:59:34 +0100 Subject: [PATCH] Remove debug messages printed to stderr. --- src/meshlink.c | 2 -- src/meta.c | 1 - src/sptps.c | 2 +- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/meshlink.c b/src/meshlink.c index 1bb403f3..b8446582 100644 --- a/src/meshlink.c +++ b/src/meshlink.c @@ -392,8 +392,6 @@ static char *get_my_hostname(meshlink_handle_t *mesh, uint32_t flags) { flags |= MESHLINK_INVITE_IPV4 | MESHLINK_INVITE_IPV6; } - fprintf(stderr, "flags = %u\n", flags); - // Add local addresses if requested if(flags & MESHLINK_INVITE_LOCAL) { if(flags & MESHLINK_INVITE_IPV4) { diff --git a/src/meta.c b/src/meta.c index 68450166..aa3499e9 100644 --- a/src/meta.c +++ b/src/meta.c @@ -138,7 +138,6 @@ bool receive_meta(meshlink_handle_t *mesh, connection_t *c) { int left = c->inbuf.len - c->inbuf.offset; if(left > 0) { - fprintf(stderr, "GOT A LITTLE MORE\n"); return sptps_receive_data(&c->sptps, buffer_read(&c->inbuf, left), left); } else { return true; diff --git a/src/sptps.c b/src/sptps.c index f44374ee..a2eb3883 100644 --- a/src/sptps.c +++ b/src/sptps.c @@ -63,7 +63,7 @@ void sptps_log_stderr(sptps_t *s, int s_errno, const char *format, va_list ap) { fputc('\n', stderr); } -void (*sptps_log)(sptps_t *s, int s_errno, const char *format, va_list ap) = sptps_log_stderr; +void (*sptps_log)(sptps_t *s, int s_errno, const char *format, va_list ap) = sptps_log_quiet; // Log an error message. static bool error(sptps_t *s, int s_errno, const char *format, ...) { -- 2.39.2