From a8dd484abaf9caaea38bf061827a515dcd1f9734 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Wed, 19 May 2010 16:03:29 +0200 Subject: [PATCH] Fix small potential bug in debug mode found by clang. --- src/detect-uricontent.c | 1 - src/tmqh-packetpool.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/detect-uricontent.c b/src/detect-uricontent.c index e878056338..b71499293e 100644 --- a/src/detect-uricontent.c +++ b/src/detect-uricontent.c @@ -1016,7 +1016,6 @@ static int DetectUriSigTest04(void) { s->match != NULL) { printf("sig 3 failed to parse: "); - //DetectContentPrint((DetectContentData *) s->pmatch_tail->ctx); goto end; } diff --git a/src/tmqh-packetpool.c b/src/tmqh-packetpool.c index bc80aaa12d..aec2f37d19 100644 --- a/src/tmqh-packetpool.c +++ b/src/tmqh-packetpool.c @@ -123,7 +123,7 @@ void TmqhOutputPacketpool(ThreadVars *t, Packet *p) } else { /* root not ready yet, so get rid of the tunnel pkt only */ - SCLogDebug("NOT p->root->tunnel_verdicted == 1 (%d) && TUNNEL_PKT_TPR(p) == 1 (%" PRIu32 ")", p->root->tunnel_verdicted, TUNNEL_PKT_TPR(p)); + SCLogDebug("NOT p->root->tunnel_verdicted == 1 && TUNNEL_PKT_TPR(p) == 1 (%" PRIu32 ")", TUNNEL_PKT_TPR(p)); TUNNEL_DECR_PKT_TPR_NOLOCK(p); /* fall through */