From: Christian Grothoff Date: Sat, 3 Oct 2009 19:00:04 +0000 (+0000) Subject: debug X-Git-Tag: initial-import-from-subversion-38251~23405 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b75029b7791d0735ade990915f8c5a9d0b560eba;p=oweals%2Fgnunet.git debug --- diff --git a/src/util/gnunet-service-resolver.c b/src/util/gnunet-service-resolver.c index 304f11b7b..5563d1ea5 100644 --- a/src/util/gnunet-service-resolver.c +++ b/src/util/gnunet-service-resolver.c @@ -229,7 +229,6 @@ getaddrinfo_resolve (struct GNUNET_SERVER_TransmitContext *tc, (s == EAI_SYSTEM) #else // FIXME NILS - 1 #endif ) return GNUNET_NO; /* other function may still succeed */ diff --git a/src/util/resolver_api.c b/src/util/resolver_api.c index d761c075e..2b8997fac 100644 --- a/src/util/resolver_api.c +++ b/src/util/resolver_api.c @@ -336,12 +336,12 @@ GNUNET_RESOLVER_ip_get (struct GNUNET_SCHEDULER_Handle *sched, sizeof(v6)); break; case AF_UNSPEC: - callback (callback_cls, - (const struct sockaddr*) &v4, - sizeof(v4)); callback (callback_cls, (const struct sockaddr*) &v6, sizeof(v6)); + callback (callback_cls, + (const struct sockaddr*) &v4, + sizeof(v4)); break; } callback (callback_cls, NULL, 0); diff --git a/src/util/service.c b/src/util/service.c index 11fbcd5c2..b15972e0e 100644 --- a/src/util/service.c +++ b/src/util/service.c @@ -1078,6 +1078,11 @@ service_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) struct GNUNET_SERVICE_Context *sctx = cls; unsigned int i; + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + _("Trying to start `%s' at `%s'\n"), + sctx->serviceName, + GNUNET_a2s (sctx->addr, + sctx->addrlen)); sctx->sched = tc->sched; sctx->server = GNUNET_SERVER_create (tc->sched, &check_access,