gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r17344 - gnunet/src/peerinfo


From: gnunet
Subject: [GNUnet-SVN] r17344 - gnunet/src/peerinfo
Date: Mon, 10 Oct 2011 15:41:32 +0200

Author: grothoff
Date: 2011-10-10 15:41:32 +0200 (Mon, 10 Oct 2011)
New Revision: 17344

Modified:
   gnunet/src/peerinfo/peerinfo_api_notify.c
Log:
use LOG macro in peerinfo_api.c

Modified: gnunet/src/peerinfo/peerinfo_api_notify.c
===================================================================
--- gnunet/src/peerinfo/peerinfo_api_notify.c   2011-10-10 13:40:47 UTC (rev 
17343)
+++ gnunet/src/peerinfo/peerinfo_api_notify.c   2011-10-10 13:41:32 UTC (rev 
17344)
@@ -30,6 +30,8 @@
 #include "gnunet_time_lib.h"
 #include "peerinfo.h"
 
+#define LOG(kind,...) GNUNET_log_from (kind, "nse-api",__VA_ARGS__)
+
 /**
  * Context for the info handler.
  */
@@ -160,9 +162,9 @@
     }
   }
 #if DEBUG_PEERINFO
-  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
-              "Received information about peer `%s' from peerinfo database\n",
-              GNUNET_i2s (&im->peer));
+  LOG (GNUNET_ERROR_TYPE_DEBUG,
+       "Received information about peer `%s' from peerinfo database\n",
+       GNUNET_i2s (&im->peer));
 #endif
   nc->callback (nc->callback_cls, &im->peer, hello, NULL);
   receive_notifications (nc);
@@ -253,8 +255,8 @@
   client = GNUNET_CLIENT_connect ("peerinfo", cfg);
   if (client == NULL)
   {
-    GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
-                _("Could not connect to `%s' service.\n"), "peerinfo");
+    LOG (GNUNET_ERROR_TYPE_WARNING, _("Could not connect to `%s' service.\n"),
+         "peerinfo");
     return NULL;
   }
   nc = GNUNET_malloc (sizeof (struct GNUNET_PEERINFO_NotifyContext));




reply via email to

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