diff options
author | tg(x) <*@tg-x.net> | 2017-02-24 20:10:42 +0100 |
---|---|---|
committer | tg(x) <*@tg-x.net> | 2017-02-24 20:10:42 +0100 |
commit | cb1165ecfc5c89c22aa4a6fffb72e27e0bde43a3 (patch) | |
tree | 401701a61ae8245f212364df7b44b228a9f4c225 /src/util/resolver_api.c | |
parent | 435ef0a62ffe830ccee159f430157cfc8cc6a3d4 (diff) | |
download | gnunet-cb1165ecfc5c89c22aa4a6fffb72e27e0bde43a3.tar.gz gnunet-cb1165ecfc5c89c22aa4a6fffb72e27e0bde43a3.zip |
util: add component name to LOG macros; util/client: log incoming message type/size/source for gnunet-logread
Diffstat (limited to 'src/util/resolver_api.c')
-rw-r--r-- | src/util/resolver_api.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/util/resolver_api.c b/src/util/resolver_api.c index fdeaed006..f33c31f1c 100644 --- a/src/util/resolver_api.c +++ b/src/util/resolver_api.c | |||
@@ -29,9 +29,9 @@ | |||
29 | #include "gnunet_resolver_service.h" | 29 | #include "gnunet_resolver_service.h" |
30 | #include "resolver.h" | 30 | #include "resolver.h" |
31 | 31 | ||
32 | #define LOG(kind,...) GNUNET_log_from (kind, "resolver-api", __VA_ARGS__) | 32 | #define LOG(kind,...) GNUNET_log_from (kind, "util-resolver-api", __VA_ARGS__) |
33 | 33 | ||
34 | #define LOG_STRERROR(kind,syscall) GNUNET_log_from_strerror (kind, "resolver-api", syscall) | 34 | #define LOG_STRERROR(kind,syscall) GNUNET_log_from_strerror (kind, "util-resolver-api", syscall) |
35 | 35 | ||
36 | /** | 36 | /** |
37 | * Maximum supported length for a hostname | 37 | * Maximum supported length for a hostname |
@@ -250,7 +250,7 @@ void | |||
250 | GNUNET_RESOLVER_disconnect () | 250 | GNUNET_RESOLVER_disconnect () |
251 | { | 251 | { |
252 | struct GNUNET_RESOLVER_RequestHandle *rh; | 252 | struct GNUNET_RESOLVER_RequestHandle *rh; |
253 | 253 | ||
254 | while (NULL != (rh = req_head)) | 254 | while (NULL != (rh = req_head)) |
255 | { | 255 | { |
256 | GNUNET_assert (GNUNET_SYSERR == rh->was_transmitted); | 256 | GNUNET_assert (GNUNET_SYSERR == rh->was_transmitted); |
@@ -298,7 +298,7 @@ static void | |||
298 | check_disconnect () | 298 | check_disconnect () |
299 | { | 299 | { |
300 | struct GNUNET_RESOLVER_RequestHandle *rh; | 300 | struct GNUNET_RESOLVER_RequestHandle *rh; |
301 | 301 | ||
302 | for (rh = req_head; NULL != rh; rh = rh->next) | 302 | for (rh = req_head; NULL != rh; rh = rh->next) |
303 | if (GNUNET_SYSERR != rh->was_transmitted) | 303 | if (GNUNET_SYSERR != rh->was_transmitted) |
304 | return; | 304 | return; |