]> arthur.barton.de Git - netdata.git/blobdiff - src/socket.c
web_log_plugin: requests per http version chart added
[netdata.git] / src / socket.c
index 681e6c71f245e7f3a9f142e09e110069d2c89f2b..643811e446786a834fdb7ba49f0762433ff5fbd9 100644 (file)
@@ -7,7 +7,7 @@
 //    [PROTOCOL:]IP[%INTERFACE][:PORT]
 //
 // PROTOCOL  = tcp or udp
-// IP        = IPv4 or IPv6 IP or hostname, optionaly enclosed in [] (required for IPv6)
+// IP        = IPv4 or IPv6 IP or hostname, optionally enclosed in [] (required for IPv6)
 // INTERFACE = for IPv6 only, the network interface to use
 // PORT      = port number or service name
 
@@ -85,7 +85,7 @@ int connect_to(const char *definition, int default_port, struct timeval *timeout
 
     int ai_err = getaddrinfo(host, service, &hints, &ai_head);
     if (ai_err != 0) {
-        error("Cannot resolve host '%s', port '%s': %s\n", host, service, gai_strerror(ai_err));
+        error("Cannot resolve host '%s', port '%s': %s", host, service, gai_strerror(ai_err));
         return -1;
     }