Remove newlines from log messages.
authorGuus Sliepen <guus@tinc-vpn.org>
Sat, 28 May 2011 21:42:18 +0000 (23:42 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Sat, 28 May 2011 21:42:18 +0000 (23:42 +0200)
src/node.c
src/subnet.c

index d6156b6a319945e456bec8f3c68690e0b569101b..cf70f8380e12df58641c01d03740135dc3252b13 100644 (file)
@@ -142,7 +142,7 @@ node_t *lookup_node_udp(const sockaddr_t *sa) {
 
 void update_node_udp(node_t *n, const sockaddr_t *sa) {
        if(n == myself) {
 
 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;
        }
 
                return;
        }
 
index f010e4ead64458875a4d97477ad53aa93e4c3fb5..47f14366c10127b1d30f488eea79662e5bb85836 100644 (file)
@@ -273,7 +273,7 @@ bool str2net(subnet_t *subnet, const char *subnetstr) {
 
 bool net2str(char *netstr, int len, const subnet_t *subnet) {
        if(!netstr || !subnet) {
 
 bool net2str(char *netstr, int len, const subnet_t *subnet) {
        if(!netstr || !subnet) {
-               logger(LOG_ERR, "net2str() was called with netstr=%p, subnet=%p!\n", netstr, subnet);
+               logger(LOG_ERR, "net2str() was called with netstr=%p, subnet=%p!", netstr, subnet);
                return false;
        }
 
                return false;
        }