diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-05-28 09:58:58 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-05-28 09:58:58 +0000 |
commit | fc1b9d4caffabba3411a27f62f9ea309a2cf8edc (patch) | |
tree | 1531a48624abbf478a27a1780e243c1059a7a938 /src/util/crypto_ecc_setup.c | |
parent | b1294ac8f7a3cf9d53334485b7ff2d97d3fb4ab7 (diff) | |
download | gnunet-fc1b9d4caffabba3411a27f62f9ea309a2cf8edc.tar.gz gnunet-fc1b9d4caffabba3411a27f62f9ea309a2cf8edc.zip |
-fix ftbfs
Diffstat (limited to 'src/util/crypto_ecc_setup.c')
-rw-r--r-- | src/util/crypto_ecc_setup.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/util/crypto_ecc_setup.c b/src/util/crypto_ecc_setup.c index 32e1acee3..67f1dea24 100644 --- a/src/util/crypto_ecc_setup.c +++ b/src/util/crypto_ecc_setup.c | |||
@@ -27,6 +27,19 @@ | |||
27 | #include <gcrypt.h> | 27 | #include <gcrypt.h> |
28 | #include "gnunet_util_lib.h" | 28 | #include "gnunet_util_lib.h" |
29 | 29 | ||
30 | #define LOG(kind,...) GNUNET_log_from (kind, "util", __VA_ARGS__) | ||
31 | |||
32 | #define LOG_STRERROR(kind,syscall) GNUNET_log_from_strerror (kind, "util", syscall) | ||
33 | |||
34 | #define LOG_STRERROR_FILE(kind,syscall,filename) GNUNET_log_from_strerror_file (kind, "util", syscall, filename) | ||
35 | |||
36 | /** | ||
37 | * Log an error message at log-level 'level' that indicates | ||
38 | * a failure of the command 'cmd' with the message given | ||
39 | * by gcry_strerror(rc). | ||
40 | */ | ||
41 | #define LOG_GCRY(level, cmd, rc) do { LOG(level, _("`%s' failed at %s:%d with error: %s\n"), cmd, __FILE__, __LINE__, gcry_strerror(rc)); } while(0) | ||
42 | |||
30 | 43 | ||
31 | /** | 44 | /** |
32 | * Wait for a short time (we're trying to lock a file or want | 45 | * Wait for a short time (we're trying to lock a file or want |