aboutsummaryrefslogtreecommitdiff
path: root/src/regex
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2013-04-23 15:55:13 +0000
committerBart Polot <bart@net.in.tum.de>2013-04-23 15:55:13 +0000
commit6a9bc072e64367297498b93cd6d975995203d2e9 (patch)
tree835ac223a72141ef7a43f6ca1726fe488cd2e6fb /src/regex
parentcd74baf3b5f44e84783a0020e6edd8454bfe0cbf (diff)
downloadgnunet-6a9bc072e64367297498b93cd6d975995203d2e9.tar.gz
gnunet-6a9bc072e64367297498b93cd6d975995203d2e9.zip
- cleanup
Diffstat (limited to 'src/regex')
-rw-r--r--src/regex/gnunet-regex-profiler.c21
1 files changed, 8 insertions, 13 deletions
diff --git a/src/regex/gnunet-regex-profiler.c b/src/regex/gnunet-regex-profiler.c
index 73dca652c..ce0a2ecb1 100644
--- a/src/regex/gnunet-regex-profiler.c
+++ b/src/regex/gnunet-regex-profiler.c
@@ -131,11 +131,6 @@ struct RegexPeer
131 struct GNUNET_TESTBED_Peer *peer_handle; 131 struct GNUNET_TESTBED_Peer *peer_handle;
132 132
133 /** 133 /**
134 * Filename of the peer's policy file.
135 */
136 char *policy_file;
137
138 /**
139 * Peer's search string. 134 * Peer's search string.
140 */ 135 */
141 const char *search_str; 136 const char *search_str;
@@ -444,10 +439,11 @@ do_shutdown (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
444 size = 439 size =
445 GNUNET_snprintf (output_buffer, 440 GNUNET_snprintf (output_buffer,
446 sizeof (output_buffer), 441 sizeof (output_buffer),
447 "%p Search string not found: %s (%d)\n%p On peer: %u (%p)\n%p With policy file: %s\n%p After: %s\n", 442 "%p Search string not found: %s (%d)\n"
443 "%p On peer: %u (%p)\n"
444 "%p After: %s\n",
448 peer, peer->search_str, peer->search_str_matched, 445 peer, peer->search_str, peer->search_str_matched,
449 peer, peer->id, peer, 446 peer, peer->id, peer,
450 peer, peer->policy_file,
451 peer, 447 peer,
452 GNUNET_STRINGS_relative_time_to_string (prof_time, 448 GNUNET_STRINGS_relative_time_to_string (prof_time,
453 GNUNET_NO)); 449 GNUNET_NO));
@@ -782,10 +778,10 @@ regex_found_handler (void *cls,
782 size = 778 size =
783 GNUNET_snprintf (output_buffer, 779 GNUNET_snprintf (output_buffer,
784 sizeof (output_buffer), 780 sizeof (output_buffer),
785 "%p Peer: %u\n%p Policy file: %s\n" 781 "%p Peer: %u\n"
786 "%p Search string: %s\n%p Search duration: %s\n\n", 782 "%p Search string: %s\n"
783 "%p Search duration: %s\n\n",
787 peer, peer->id, 784 peer, peer->id,
788 peer, peer->policy_file,
789 peer, peer->search_str, 785 peer, peer->search_str,
790 peer, 786 peer,
791 GNUNET_STRINGS_relative_time_to_string (prof_time, 787 GNUNET_STRINGS_relative_time_to_string (prof_time,
@@ -882,10 +878,9 @@ find_string (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
882 return; 878 return;
883 879
884 GNUNET_log (GNUNET_ERROR_TYPE_INFO, 880 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
885 "Searching for string \"%s\" on peer %d with file %s (%u||)\n", 881 "Searching for string \"%s\" on peer %d (%u||)\n",
886 peers[search_peer].search_str, 882 peers[search_peer].search_str,
887 search_peer, 883 search_peer,
888 peers[search_peer].policy_file,
889 parallel_searches); 884 parallel_searches);
890 885
891 peers[search_peer].op_handle = 886 peers[search_peer].op_handle =
@@ -1368,7 +1363,7 @@ int
1368main (int argc, char *const *argv) 1363main (int argc, char *const *argv)
1369{ 1364{
1370 static const struct GNUNET_GETOPT_CommandLineOption options[] = { 1365 static const struct GNUNET_GETOPT_CommandLineOption options[] = {
1371 {'o', "log-file", "FILENAME", 1366 {'o', "output-file", "FILENAME",
1372 gettext_noop ("name of the file for writing statistics"), 1367 gettext_noop ("name of the file for writing statistics"),
1373 1, &GNUNET_GETOPT_set_string, &data_filename}, 1368 1, &GNUNET_GETOPT_set_string, &data_filename},
1374 {'t', "matching-timeout", "TIMEOUT", 1369 {'t', "matching-timeout", "TIMEOUT",