summaryrefslogtreecommitdiff
path: root/src/transport/test_plugin_transport.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-05-10 13:37:02 +0200
committerChristian Grothoff <christian@grothoff.org>2018-05-10 13:37:02 +0200
commit5351d6b088a895b5c21577ec540f139f2d6d2467 (patch)
treee1491f3ed6eb49d3acd555952b14517b4322db33 /src/transport/test_plugin_transport.c
parentfa126996254a79c1140683ab32498ff07840b99e (diff)
more verbose logging
Diffstat (limited to 'src/transport/test_plugin_transport.c')
-rw-r--r--src/transport/test_plugin_transport.c33
1 files changed, 21 insertions, 12 deletions
diff --git a/src/transport/test_plugin_transport.c b/src/transport/test_plugin_transport.c
index acb3911f0..d80a13410 100644
--- a/src/transport/test_plugin_transport.c
+++ b/src/transport/test_plugin_transport.c
@@ -566,8 +566,10 @@ handle_helper_message (void *cls,
* @param c configuration to use
*/
static void
-run (void *cls, char * const *args, const char *cfgfile,
- const struct GNUNET_CONFIGURATION_Handle *c)
+run (void *cls,
+ char * const *args,
+ const char *cfgfile,
+ const struct GNUNET_CONFIGURATION_Handle *c)
{
char * const *argv = cls;
unsigned long long tneigh;
@@ -575,8 +577,9 @@ run (void *cls, char * const *args, const char *cfgfile,
char *plugin;
char *sep;
- timeout_endbadly = GNUNET_SCHEDULER_add_delayed (TIMEOUT, end_badly, &ok);
-
+ timeout_endbadly = GNUNET_SCHEDULER_add_delayed (TIMEOUT,
+ &end_badly,
+ &ok);
cfg = c;
/* parse configuration */
if ((GNUNET_OK
@@ -594,7 +597,7 @@ run (void *cls, char * const *args, const char *cfgfile,
if (NULL == (stats = GNUNET_STATISTICS_create ("transport", cfg)))
{
GNUNET_log(GNUNET_ERROR_TYPE_ERROR,
- "Could not create statistics. Exiting.\n");
+ "Could not create statistics. Exiting.\n");
GNUNET_free(keyfile);
end_badly_now ();
return;
@@ -602,27 +605,33 @@ run (void *cls, char * const *args, const char *cfgfile,
if (GNUNET_OK != GNUNET_DISK_file_test (HOSTKEY_FILE))
{
- GNUNET_log(GNUNET_ERROR_TYPE_ERROR, "Hostkey `%s' missing. Exiting.\n",
- HOSTKEY_FILE);
+ GNUNET_log(GNUNET_ERROR_TYPE_ERROR,
+ "Hostkey `%s' missing. Exiting.\n",
+ HOSTKEY_FILE);
GNUNET_free(keyfile);
end_badly_now ();
return;
}
- if (GNUNET_OK != GNUNET_DISK_directory_create_for_file (keyfile))
+ if (GNUNET_OK !=
+ GNUNET_DISK_directory_create_for_file (keyfile))
{
GNUNET_log(GNUNET_ERROR_TYPE_ERROR,
- "Could not create a directory for hostkey `%s'. Exiting.\n", keyfile);
+ "Could not create a directory for hostkey `%s'. Exiting.\n",
+ keyfile);
GNUNET_free(keyfile);
end_badly_now ();
return;
}
- if (GNUNET_OK != GNUNET_DISK_file_copy (HOSTKEY_FILE, keyfile))
+ if (GNUNET_OK !=
+ GNUNET_DISK_file_copy (HOSTKEY_FILE,
+ keyfile))
{
GNUNET_log(GNUNET_ERROR_TYPE_ERROR,
- "Could not copy hostkey `%s' to destination `%s'. Exiting.\n",
- HOSTKEY_FILE, keyfile);
+ "Could not copy hostkey `%s' to destination `%s'. Exiting.\n",
+ HOSTKEY_FILE,
+ keyfile);
GNUNET_free(keyfile);
end_badly_now ();
return;