summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2010-08-04 11:47:59 +0200
committerWim Taymans <wim.taymans@collabora.co.uk>2010-08-23 10:17:55 +0200
commit2aa352caf942b6f70482d3a890b937bd3c5cb00e (patch)
treedf73ce85669aed6d82833b3a2a547b377b8da4ec
parent458b673fa8dbb70525505b531c0c3134a64c62bb (diff)
socket-server: print more errors
When we fail to bind on a socket, print the port or socket filename.
-rw-r--r--src/pulsecore/socket-server.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pulsecore/socket-server.c b/src/pulsecore/socket-server.c
index 3b7c69733..996993c84 100644
--- a/src/pulsecore/socket-server.c
+++ b/src/pulsecore/socket-server.c
@@ -197,7 +197,7 @@ pa_socket_server* pa_socket_server_new_unix(pa_mainloop_api *m, const char *file
pa_make_socket_low_delay(fd);
if (bind(fd, (struct sockaddr*) &sa, (socklen_t) SUN_LEN(&sa)) < 0) {
- pa_log("bind(): %s", pa_cstrerror(errno));
+ pa_log("bind(): path %s: %s", filename, pa_cstrerror(errno));
goto fail;
}
@@ -269,7 +269,7 @@ pa_socket_server* pa_socket_server_new_ipv4(pa_mainloop_api *m, uint32_t address
goto good;
}
- pa_log("bind(): %s", pa_cstrerror(errno));
+ pa_log("bind(): port %d %s", port, pa_cstrerror(errno));
goto fail;
good:
@@ -338,7 +338,7 @@ pa_socket_server* pa_socket_server_new_ipv6(pa_mainloop_api *m, const uint8_t ad
goto good;
}
- pa_log("bind(): %s", pa_cstrerror(errno));
+ pa_log("bind(): port %d %s", port, pa_cstrerror(errno));
goto fail;
good: