diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-05-22 13:26:36 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-05-22 13:26:36 +0000 |
commit | bad29fd9a1cc3b1c7df7b992212568918c961b52 (patch) | |
tree | 692be9fda2a949f844690e360ce9d6d5f50f8916 /src/regex/test_regex_integration.c | |
parent | 7b636c9e74039f14b25e70d1050432d9782efef9 (diff) | |
download | gnunet-bad29fd9a1cc3b1c7df7b992212568918c961b52.tar.gz gnunet-bad29fd9a1cc3b1c7df7b992212568918c961b52.zip |
add logging and in particular checks to make sure no '.' wildcards are during initial transitions of the DFA
Diffstat (limited to 'src/regex/test_regex_integration.c')
-rw-r--r-- | src/regex/test_regex_integration.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/regex/test_regex_integration.c b/src/regex/test_regex_integration.c index b28ab15d0..0cb177fcc 100644 --- a/src/regex/test_regex_integration.c +++ b/src/regex/test_regex_integration.c | |||
@@ -85,7 +85,7 @@ end_badly () | |||
85 | /** | 85 | /** |
86 | * Search callback function, invoked for every result that was found. | 86 | * Search callback function, invoked for every result that was found. |
87 | * | 87 | * |
88 | * @param cls Closure provided in GNUNET_REGEX_search. | 88 | * @param cls Closure provided in #GNUNET_REGEX_search(). |
89 | * @param id Peer providing a regex that matches the string. | 89 | * @param id Peer providing a regex that matches the string. |
90 | * @param get_path Path of the get request. | 90 | * @param get_path Path of the get request. |
91 | * @param get_path_length Length of @a get_path. | 91 | * @param get_path_length Length of @a get_path. |
@@ -103,9 +103,9 @@ found_cb (void *cls, | |||
103 | const char *str = cls; | 103 | const char *str = cls; |
104 | static int found; | 104 | static int found; |
105 | 105 | ||
106 | fprintf (stderr, | 106 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
107 | "IPv%s-exit found\n", | 107 | "IPv%s-exit found\n", |
108 | str); | 108 | str); |
109 | if (0 == strcmp (str, "4")) | 109 | if (0 == strcmp (str, "4")) |
110 | found |= 4; | 110 | found |= 4; |
111 | if (0 == strcmp (str, "6")) | 111 | if (0 == strcmp (str, "6")) |