From 3fca2cad485ef70360bca085c5c4d052b6deb15b Mon Sep 17 00:00:00 2001 From: Sven-Haegar Koch Date: Sat, 28 May 2011 01:36:10 +0200 Subject: [PATCH] Removed two newlines from the end of log messages which created empty lines. --- src/gcrypt/rsa.c | 2 +- src/node.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gcrypt/rsa.c b/src/gcrypt/rsa.c index a729591..ceb1638 100644 --- a/src/gcrypt/rsa.c +++ b/src/gcrypt/rsa.c @@ -267,7 +267,7 @@ size_t rsa_size(rsa_t *rsa) { */ // TODO: get rid of this macro, properly clean up gcry_ structures after use -#define check(foo) { gcry_error_t err = (foo); if(err) {logger(LOG_ERR, "gcrypt error %s/%s at %s:%d\n", gcry_strsource(err), gcry_strerror(err), __FILE__, __LINE__); return false; }} +#define check(foo) { gcry_error_t err = (foo); if(err) {logger(LOG_ERR, "gcrypt error %s/%s at %s:%d", gcry_strsource(err), gcry_strerror(err), __FILE__, __LINE__); return false; }} bool rsa_public_encrypt(rsa_t *rsa, void *in, size_t len, void *out) { gcry_mpi_t inmpi; diff --git a/src/node.c b/src/node.c index 3ec9fab..dee7aad 100644 --- a/src/node.c +++ b/src/node.c @@ -144,7 +144,7 @@ node_t *lookup_node_udp(const sockaddr_t *sa) { void update_node_udp(node_t *n, const sockaddr_t *sa) { if(n == myself) { - logger(LOG_WARNING, "Trying to update UDP address of myself!\n"); + logger(LOG_WARNING, "Trying to update UDP address of myself!"); return; } -- 2.25.1