From a8de20af8037dc7fc0bdad2ebe235942b91f4f28 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 1 Apr 2012 18:10:16 +0000 Subject: [PATCH] -do not warn if stat fails, do not output DEBUG messages in test --- src/hello/test_hello.c | 2 +- src/util/disk.c | 4 ++-- src/util/network.c | 2 -- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/hello/test_hello.c b/src/hello/test_hello.c index 0efbdee72..bdabc72ea 100644 --- a/src/hello/test_hello.c +++ b/src/hello/test_hello.c @@ -25,7 +25,7 @@ #include "platform.h" #include "gnunet_hello_lib.h" -#define DEBUG GNUNET_EXTRA_LOGGING +#define DEBUG GNUNET_NO #define VERBOSE GNUNET_NO diff --git a/src/util/disk.c b/src/util/disk.c index ae3ac4c41..cebf6d033 100644 --- a/src/util/disk.c +++ b/src/util/disk.c @@ -171,13 +171,13 @@ getSizeRec (void *cls, const char *fn) #ifdef HAVE_STAT64 if (0 != STAT64 (fn, &buf)) { - LOG_STRERROR_FILE (GNUNET_ERROR_TYPE_WARNING, "stat64", fn); + LOG_STRERROR_FILE (GNUNET_ERROR_TYPE_DEBUG, "stat64", fn); return GNUNET_SYSERR; } #else if (0 != STAT (fn, &buf)) { - LOG_STRERROR_FILE (GNUNET_ERROR_TYPE_WARNING, "stat", fn); + LOG_STRERROR_FILE (GNUNET_ERROR_TYPE_DEBUG, "stat", fn); return GNUNET_SYSERR; } #endif diff --git a/src/util/network.c b/src/util/network.c index 217cebc77..d398d6f11 100644 --- a/src/util/network.c +++ b/src/util/network.c @@ -1516,10 +1516,8 @@ GNUNET_NETWORK_socket_select (struct GNUNET_NETWORK_FDSet *rfds, } } } -#if DEBUG_NETWORK if (!nhandles || (returnedpos >= nhandles)) LOG (GNUNET_ERROR_TYPE_DEBUG, "Returning from _select() with nothing!\n"); -#endif if (rfds) { struct GNUNET_CONTAINER_SList_Iterator t; -- 2.25.1