]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
sharper match.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Wed, 16 Sep 2009 13:13:46 +0000 (13:13 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Wed, 16 Sep 2009 13:13:46 +0000 (13:13 +0000)
git-svn-id: file:///svn/unbound/trunk@1835 be551aaa-1e26-0410-a405-d3ace91eadb9

testcode/memstats.c

index fca3f2c2c92c2bff44f928e1b865139a99c539fd..8cbd9f546e0d1fa1999a7a4b5e06fda022390478 100644 (file)
@@ -81,13 +81,13 @@ match(char* line)
         * [1187340064] unbound[24604:0] info: ul/rb.c:81 r_create malloc(12)
         * 0123456789 123456789 123456789 123456789
         * But now also:
-        * Sep 16 15:18:20 unbound[17428:0] info: ul/nh.c:143 memdup malloc(11)
+        * Sep 16 15:18:20 unbound[1:0] info: ul/nh.c:143 memdup malloc(11)
         */
        if(strlen(line) < 32) /* up to 'info: ' */
                return 0;
-       if(!strstr(line, "] info: "))
+       if(!strstr(line, " info: "))
                return 0;
-       if(strstr(line, "info: stat"))
+       if(strstr(line, "info: stat "))
                return 0; /* skip the hex dumps */
        if(strstr(line+30, "malloc("))
                return 1;