diff options
author | Marc-André Lureau | 2018-11-21 23:06:39 +0100 |
---|---|---|
committer | Samuel Thibault | 2019-01-14 00:44:29 +0100 |
commit | eb0b159614a09948107cfb31e2761709ba039835 (patch) | |
tree | 879c2918cc7c6679298de5035caeece676120de6 /slirp/cksum.c | |
parent | slirp: use %p for pointers format (diff) | |
download | qemu-eb0b159614a09948107cfb31e2761709ba039835.tar.gz qemu-eb0b159614a09948107cfb31e2761709ba039835.tar.xz qemu-eb0b159614a09948107cfb31e2761709ba039835.zip |
slirp: remove remaining DEBUG blocks
Instead, rely on slirp_debug flags, or compile unconditionally (the
substraction in cksum is unlikely to affect any benchmark result).
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Diffstat (limited to 'slirp/cksum.c')
-rw-r--r-- | slirp/cksum.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/slirp/cksum.c b/slirp/cksum.c index b9466485b5..0a988b845d 100644 --- a/slirp/cksum.c +++ b/slirp/cksum.c @@ -70,9 +70,7 @@ int cksum(struct mbuf *m, int len) if (len < mlen) mlen = len; -#ifdef DEBUG len -= mlen; -#endif /* * Force to even boundary. */ @@ -122,12 +120,10 @@ int cksum(struct mbuf *m, int len) s_util.c[0] = *(uint8_t *)w; cont: -#ifdef DEBUG if (len) { DEBUG_ERROR("cksum: out of data\n"); DEBUG_ERROR(" len = %d\n", len); } -#endif if (mlen == -1) { /* The last mbuf has odd # of bytes. Follow the standard (the odd byte may be shifted left by 8 bits |