From da1fab3835702345be3ef0af35e53982dcd96475 Mon Sep 17 00:00:00 2001 From: victor Date: Mon, 16 Nov 2009 11:57:56 +0000 Subject: [PATCH] debug print off git-svn-id: https://ttuki.vtt.fi/svn/p2p-next/TUD/p2tp/trunk@562 e16421f0-f15b-0410-abcd-98678b794739 --- datagram.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/datagram.h b/datagram.h index b03dea5..2293ea7 100644 --- a/datagram.h +++ b/datagram.h @@ -204,7 +204,11 @@ struct Datagram { const char* tintstr(tint t=0); std::string sock2str (struct sockaddr_in addr); +#ifdef DEBUG #define dprintf(...) printf(__VA_ARGS__) +#else +#define dprintf(...) {} +#endif #define eprintf(...) fprintf(stderr,__VA_ARGS__) //#define dprintf(...) {} -- 2.20.1