diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-10-10 13:41:32 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-10-10 13:41:32 +0000 |
commit | 0c3e6f7f6b12f21fc2f27f958bd49d513f0207e0 (patch) | |
tree | ddf7845d39c3df36dedbc1a88ac1b7b81d2abd4d /src/peerinfo | |
parent | 6d995ee0957535b2cb71a8e529fb47de54870346 (diff) | |
download | gnunet-0c3e6f7f6b12f21fc2f27f958bd49d513f0207e0.tar.gz gnunet-0c3e6f7f6b12f21fc2f27f958bd49d513f0207e0.zip |
use LOG macro in peerinfo_api.c
Diffstat (limited to 'src/peerinfo')
-rw-r--r-- | src/peerinfo/peerinfo_api_notify.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/peerinfo/peerinfo_api_notify.c b/src/peerinfo/peerinfo_api_notify.c index 9c75b1828..a0588db3d 100644 --- a/src/peerinfo/peerinfo_api_notify.c +++ b/src/peerinfo/peerinfo_api_notify.c | |||
@@ -30,6 +30,8 @@ | |||
30 | #include "gnunet_time_lib.h" | 30 | #include "gnunet_time_lib.h" |
31 | #include "peerinfo.h" | 31 | #include "peerinfo.h" |
32 | 32 | ||
33 | #define LOG(kind,...) GNUNET_log_from (kind, "nse-api",__VA_ARGS__) | ||
34 | |||
33 | /** | 35 | /** |
34 | * Context for the info handler. | 36 | * Context for the info handler. |
35 | */ | 37 | */ |
@@ -160,9 +162,9 @@ process_notification (void *cls, const struct GNUNET_MessageHeader *msg) | |||
160 | } | 162 | } |
161 | } | 163 | } |
162 | #if DEBUG_PEERINFO | 164 | #if DEBUG_PEERINFO |
163 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 165 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
164 | "Received information about peer `%s' from peerinfo database\n", | 166 | "Received information about peer `%s' from peerinfo database\n", |
165 | GNUNET_i2s (&im->peer)); | 167 | GNUNET_i2s (&im->peer)); |
166 | #endif | 168 | #endif |
167 | nc->callback (nc->callback_cls, &im->peer, hello, NULL); | 169 | nc->callback (nc->callback_cls, &im->peer, hello, NULL); |
168 | receive_notifications (nc); | 170 | receive_notifications (nc); |
@@ -253,8 +255,8 @@ GNUNET_PEERINFO_notify (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
253 | client = GNUNET_CLIENT_connect ("peerinfo", cfg); | 255 | client = GNUNET_CLIENT_connect ("peerinfo", cfg); |
254 | if (client == NULL) | 256 | if (client == NULL) |
255 | { | 257 | { |
256 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, | 258 | LOG (GNUNET_ERROR_TYPE_WARNING, _("Could not connect to `%s' service.\n"), |
257 | _("Could not connect to `%s' service.\n"), "peerinfo"); | 259 | "peerinfo"); |
258 | return NULL; | 260 | return NULL; |
259 | } | 261 | } |
260 | nc = GNUNET_malloc (sizeof (struct GNUNET_PEERINFO_NotifyContext)); | 262 | nc = GNUNET_malloc (sizeof (struct GNUNET_PEERINFO_NotifyContext)); |