Browse Source

udp: Add new line in log messages.

Georgi Chorbadzhiyski 12 years ago
parent
commit
eae5f59968
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      udp.c

+ 3
- 3
udp.c View File

@@ -32,7 +32,7 @@
32 32
 int udp_connect_input(struct io *io) {
33 33
 	int sock = socket(AF_INET, SOCK_DGRAM, 0);
34 34
 	if (sock < 0) {
35
-		ts_LOGf("socket(SOCK_DGRAM): %s", strerror(errno));
35
+		ts_LOGf("socket(SOCK_DGRAM): %s\n", strerror(errno));
36 36
 		return -1;
37 37
 	}
38 38
 
@@ -50,7 +50,7 @@ int udp_connect_input(struct io *io) {
50 50
 		memcpy(&mreq.imr_multiaddr, &io->addr, sizeof(struct in_addr));
51 51
 		mreq.imr_interface.s_addr = htonl(INADDR_ANY);
52 52
 		if (setsockopt(sock, IPPROTO_IP, IP_ADD_MEMBERSHIP, &mreq, sizeof(mreq)) < 0) {
53
-			ts_LOGf("setsockopt(IP_ADD_MEMBERSHIP %s): %s", inet_ntoa(io->addr), strerror(errno));
53
+			ts_LOGf("setsockopt(IP_ADD_MEMBERSHIP %s): %s\n", inet_ntoa(io->addr), strerror(errno));
54 54
 			return -1;
55 55
 		}
56 56
 	}
@@ -61,7 +61,7 @@ int udp_connect_input(struct io *io) {
61 61
 	receiving_from.sin_addr   = io->addr;
62 62
 	receiving_from.sin_port   = htons(io->port);
63 63
 	if (bind(sock, (struct sockaddr *) &receiving_from, sizeof(receiving_from)) < 0) {
64
-		ts_LOGf("bind(): %s", strerror(errno));
64
+		ts_LOGf("bind(): %s\n", strerror(errno));
65 65
 		return -1;
66 66
 	}
67 67
 

Loading…
Cancel
Save