From 42240bfb9f744e85505b2780ac6b7aa4088db60b Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Mon, 11 Oct 2010 21:15:12 +0200 Subject: [PATCH] udp_recv: Add missing line break in log messages. Also reduce the line length a bit and fix a whitespace issue. --- udp_recv.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/udp_recv.c b/udp_recv.c index 8e2fcf2f..f008f1ed 100644 --- a/udp_recv.c +++ b/udp_recv.c @@ -145,7 +145,8 @@ static int mcast_receiver_setup(int fd, const char *iface) assert(ss.ss_family == AF_INET || ss.ss_family == AF_INET6); if (iface != NULL && id == 0) - PARA_WARNING_LOG("could not resolve interface %s, using default", iface); + PARA_WARNING_LOG("could not resolve interface %s, using default\n", + iface); switch (ss.ss_family) { case AF_INET: @@ -160,12 +161,13 @@ static int mcast_receiver_setup(int fd, const char *iface) m4.imr_interface.s_addr = INADDR_ANY; if (id != 0) - PARA_ERROR_LOG("Setting IPv4 receiver mcast interface not supported."); + PARA_ERROR_LOG("Setting IPv4 receiver mcast interface not supported\n"); #endif - m4.imr_multiaddr = ((struct sockaddr_in *)&ss)->sin_addr; + m4.imr_multiaddr = ((struct sockaddr_in *)&ss)->sin_addr; - if (setsockopt(fd, IPPROTO_IP, IP_ADD_MEMBERSHIP, &m4, sizeof(m4)) < 0) + if (setsockopt(fd, IPPROTO_IP, IP_ADD_MEMBERSHIP, + &m4, sizeof(m4)) < 0) break; } return 0; -- 2.39.5