[Slirp] [Git][slirp/libslirp][master] 2 commits: mbuf: Use SLIRP_DEBUG to enable mbuf debugging instead of DEBUG
Marc-André Lureau (@elmarco)
gitlab at gitlab.freedesktop.org
Thu Feb 10 22:25:40 UTC 2022
Marc-André Lureau pushed to branch master at slirp / libslirp
Commits:
4399c898 by Brett Nash at 2022-02-10T21:46:04+00:00
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 at fb.com>
Signed-off-by: Brett Nash <nash at fb.com>
- - - - -
88e2f8e3 by Marc-André Lureau at 2022-02-10T22:25:37+00:00
Merge branch 'debug-fix' into 'master'
mbuf: Use SLIRP_DEBUG to enable mbuf debugging instead of DEBUG
See merge request slirp/libslirp!114
- - - - -
2 changed files:
- src/mbuf.h
- src/socket.c
Changes:
=====================================
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
=====================================
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");
}
View it on GitLab: https://gitlab.freedesktop.org/slirp/libslirp/-/compare/630d673c143dc57d92f8c28888eb136927f6825d...88e2f8e385614432d8499a4fb37f0d361cca30d6
--
View it on GitLab: https://gitlab.freedesktop.org/slirp/libslirp/-/compare/630d673c143dc57d92f8c28888eb136927f6825d...88e2f8e385614432d8499a4fb37f0d361cca30d6
You're receiving this email because of your account on gitlab.freedesktop.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/slirp/attachments/20220210/a6f5639b/attachment.htm>
More information about the Slirp
mailing list