diff options
author | Brett Nash <nash@nash.space> | 2022-02-10 21:46:04 +0000 |
---|---|---|
committer | Brett Nash <nash@nash.space> | 2022-02-10 21:46:04 +0000 |
commit | 4399c89852c1981e539714cc6f592648e7088de6 (patch) | |
tree | 490ae64df0a82f2b6fffe97a68d28120dda860d1 | |
parent | 630d673c143dc57d92f8c28888eb136927f6825d (diff) | |
download | slirp-4399c89852c1981e539714cc6f592648e7088de6.zip slirp-4399c89852c1981e539714cc6f592648e7088de6.tar.gz slirp-4399c89852c1981e539714cc6f592648e7088de6.tar.bz2 |
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 <pablofiori@fb.com>
Signed-off-by: Brett Nash <nash@fb.com>
-rw-r--r-- | src/mbuf.h | 2 | ||||
-rw-r--r-- | src/socket.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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"); } |