From 4399c89852c1981e539714cc6f592648e7088de6 Mon Sep 17 00:00:00 2001 From: Brett Nash Date: Thu, 10 Feb 2022 21:46:04 +0000 Subject: mbuf: Use SLIRP_DEBUG to enable mbuf debugging instead of DEBUG DEBUG is set by a number of IDEs and development environments (*cough* xcode *cough*). This means we use mbuf duplication when we don't need (or expect) it. Change the name to SLIRP_DEBUG to enable this feature. Signed-off-by: Pablo Fiori Signed-off-by: Brett Nash --- src/mbuf.h | 2 +- src/socket.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/mbuf.h b/src/mbuf.h index 34e697a..aedfc71 100644 --- a/src/mbuf.h +++ b/src/mbuf.h @@ -134,7 +134,7 @@ static inline void ifs_init(struct mbuf *ifm) ifm->ifs_next = ifm->ifs_prev = ifm; } -#ifdef DEBUG +#ifdef SLIRP_DEBUG # define MBUF_DEBUG 1 #else # ifdef HAVE_VALGRIND diff --git a/src/socket.c b/src/socket.c index 3859919..f7af028 100644 --- a/src/socket.c +++ b/src/socket.c @@ -375,7 +375,7 @@ int sosendoob(struct socket *so) len += n; } n = slirp_send(so, buff, len, (MSG_OOB)); /* |MSG_DONTWAIT)); */ -#ifdef DEBUG +#ifdef SLIRP_DEBUG if (n != len) { DEBUG_ERROR("Didn't send all data urgently XXXXX"); } -- cgit v1.1