gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r6248 - GNUnet/src/applications/pingpong


From: gnunet
Subject: [GNUnet-SVN] r6248 - GNUnet/src/applications/pingpong
Date: Sun, 10 Feb 2008 23:10:52 -0700 (MST)

Author: grothoff
Date: 2008-02-10 23:10:51 -0700 (Sun, 10 Feb 2008)
New Revision: 6248

Modified:
   GNUnet/src/applications/pingpong/pingpong.c
Log:
verbose

Modified: GNUnet/src/applications/pingpong/pingpong.c
===================================================================
--- GNUnet/src/applications/pingpong/pingpong.c 2008-02-11 06:10:39 UTC (rev 
6247)
+++ GNUnet/src/applications/pingpong/pingpong.c 2008-02-11 06:10:51 UTC (rev 
6248)
@@ -191,9 +191,7 @@
                        const GNUNET_MessageHeader * hmsg,
                        GNUNET_TSession * tsession)
 {
-#if DEBUG_PINGPONG
   GNUNET_EncName enc;
-#endif
   const P2P_pingpong_MESSAGE *pmsg;
   P2P_pingpong_MESSAGE pong;
   int ret;
@@ -212,9 +210,11 @@
   if (0 != memcmp (coreAPI->myIdentity,
                    &pmsg->receiver, sizeof (GNUNET_PeerIdentity)))
     {
+      GNUNET_hash_to_enc (&sender->hashPubKey, &enc);
       GNUNET_GE_LOG (ectx,
                      GNUNET_GE_INFO | GNUNET_GE_REQUEST | GNUNET_GE_ADMIN,
-                     _("Received PING not destined for us!\n"));
+                     _("Received PING from `%s' not destined for us!\n"),
+                    &enc);
       GNUNET_GE_BREAK_OP (NULL, 0);
       return GNUNET_SYSERR;     /* not for us */
     }





reply via email to

[Prev in Thread] Current Thread [Next in Thread]