From: Christian Grothoff Date: Mon, 23 Jan 2017 19:09:37 +0000 (+0100) Subject: handle loopback in GCCH_2s X-Git-Tag: taler-0.2.1~326 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=28b25959ed7a476053dda2f2c24a9d5b9b477eaf;p=oweals%2Fgnunet.git handle loopback in GCCH_2s --- diff --git a/src/cadet/gnunet-service-cadet-new_channel.c b/src/cadet/gnunet-service-cadet-new_channel.c index 4d4be93d7..0d2545fb4 100644 --- a/src/cadet/gnunet-service-cadet-new_channel.c +++ b/src/cadet/gnunet-service-cadet-new_channel.c @@ -337,7 +337,9 @@ GCCH_2s (const struct CadetChannel *ch) GNUNET_snprintf (buf, sizeof (buf), "Channel %s:%s ctn:%X(%X/%X)", - GNUNET_i2s (GCP_get_id (GCT_get_destination (ch->t))), + (GNUNET_YES == ch->is_loopback) + ? "loopback" + : GNUNET_i2s (GCP_get_id (GCT_get_destination (ch->t))), GNUNET_h2s (&ch->port), ch->ctn, ntohl (ch->ccn_owner.channel_of_client),