From 9ca55d20f8309b24696cae7c150874a2117cfd44 Mon Sep 17 00:00:00 2001 From: Carlo von lynX Date: Sat, 6 Aug 2016 13:58:55 +0000 Subject: [PATCH] multicast: use INFO not WARNING --- src/multicast/gnunet-multicast.c | 5 ++++- src/multicast/gnunet-service-multicast.c | 4 ++-- src/multicast/test_multicast.c | 12 ++++++------ 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/src/multicast/gnunet-multicast.c b/src/multicast/gnunet-multicast.c index b370ca5dd..b37625988 100644 --- a/src/multicast/gnunet-multicast.c +++ b/src/multicast/gnunet-multicast.c @@ -45,6 +45,8 @@ run (void *cls, char *const *args, const char *cfgfile, const struct GNUNET_CONFIGURATION_Handle *cfg) { /* main code here */ + puts( gettext_noop ("This command doesn't do anything yet.") ); + ret = -1; } @@ -67,7 +69,8 @@ main (int argc, char *const *argv) ret = (GNUNET_OK == GNUNET_PROGRAM_run (argc, argv, "gnunet-multicast", - gettext_noop ("help text"), options, &run, + gettext_noop ("This command doesn't do anything yet."), + options, &run, NULL)) ? ret : 1; GNUNET_free ((void*) argv); return ret; diff --git a/src/multicast/gnunet-service-multicast.c b/src/multicast/gnunet-service-multicast.c index 04146a99b..7aeda1421 100644 --- a/src/multicast/gnunet-service-multicast.c +++ b/src/multicast/gnunet-service-multicast.c @@ -561,7 +561,7 @@ static void client_send (struct GNUNET_SERVER_Client *client, const struct GNUNET_MessageHeader *msg) { - GNUNET_log (GNUNET_ERROR_TYPE_WARNING, + GNUNET_log (GNUNET_ERROR_TYPE_INFO, "%p Sending message to client.\n", client); GNUNET_SERVER_notification_context_add (nc, client); @@ -576,7 +576,7 @@ static void client_send_group (const struct Group *grp, const struct GNUNET_MessageHeader *msg) { - GNUNET_log (GNUNET_ERROR_TYPE_WARNING, + GNUNET_log (GNUNET_ERROR_TYPE_INFO, "%p Sending message to all clients of the group.\n", grp); struct ClientList *cl = grp->clients_head; diff --git a/src/multicast/test_multicast.c b/src/multicast/test_multicast.c index fd8c16670..63f162d00 100644 --- a/src/multicast/test_multicast.c +++ b/src/multicast/test_multicast.c @@ -152,7 +152,7 @@ end_normally (void *cls) { res = 0; cleanup (); - GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "Test PASSED.\n"); + GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Test PASSED.\n"); } @@ -257,7 +257,7 @@ static void schedule_origin_stop (void *cls) { test = TEST_ORIGIN_STOP; - GNUNET_log (GNUNET_ERROR_TYPE_WARNING, + GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Test #%u: origin_stop()\n", test); GNUNET_MULTICAST_origin_stop (origin, origin_stopped, NULL); origin = NULL; @@ -302,7 +302,7 @@ static void member_part () { test = TEST_MEMBER_PART; - GNUNET_log (GNUNET_ERROR_TYPE_WARNING, + GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Test #%u: member_part()\n", test); GNUNET_SCHEDULER_add_now (&schedule_member_part, NULL); } @@ -531,7 +531,7 @@ static void origin_to_all () { test = TEST_ORIGIN_TO_ALL; - GNUNET_log (GNUNET_ERROR_TYPE_WARNING, + GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Test #%u: origin_to_all()\n", test); struct TransmitClosure *tmit = &tmit_cls; @@ -635,7 +635,7 @@ static void member_join (int t) { test = t; - GNUNET_log (GNUNET_ERROR_TYPE_WARNING, + GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Test #%u: member_join()\n", test); member_key = GNUNET_CRYPTO_ecdsa_key_create (); @@ -666,7 +666,7 @@ static void origin_start () { test = TEST_ORIGIN_START; - GNUNET_log (GNUNET_ERROR_TYPE_WARNING, + GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Test #%u: origin_start()\n", test); group_key = GNUNET_CRYPTO_eddsa_key_create (); -- 2.25.1