summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--audio/avdtp.c4
-rw-r--r--audio/control.c4
-rw-r--r--audio/manager.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/audio/avdtp.c b/audio/avdtp.c
index 2f2e131e..3c35bfc1 100644
--- a/audio/avdtp.c
+++ b/audio/avdtp.c
@@ -2852,13 +2852,13 @@ static GIOChannel *avdtp_server_socket(gboolean master)
addr.l2_psm = htobs(AVDTP_PSM);
if (bind(sock, (struct sockaddr *) &addr, sizeof(addr)) < 0) {
- error("AVDTP server bind: %s", strerror(errno), errno);
+ error("AVDTP server bind: %s (%d)", strerror(errno), errno);
close(sock);
return NULL;
}
if (listen(sock, 4) < 0) {
- error("AVDTP server listen: %s", strerror(errno), errno);
+ error("AVDTP server listen: %s (%d)", strerror(errno), errno);
close(sock);
return NULL;
}
diff --git a/audio/control.c b/audio/control.c
index 1ed7d62f..6007c82b 100644
--- a/audio/control.c
+++ b/audio/control.c
@@ -328,13 +328,13 @@ static GIOChannel *avctp_server_socket(gboolean master)
addr.l2_psm = htobs(AVCTP_PSM);
if (bind(sock, (struct sockaddr *) &addr, sizeof(addr)) < 0) {
- error("AVCTP server bind: %s", strerror(errno), errno);
+ error("AVCTP server bind: %s (%d)", strerror(errno), errno);
close(sock);
return NULL;
}
if (listen(sock, 4) < 0) {
- error("AVCTP server listen: %s", strerror(errno), errno);
+ error("AVCTP server listen: %s (%d)", strerror(errno), errno);
close(sock);
return NULL;
}
diff --git a/audio/manager.c b/audio/manager.c
index f33dc963..bf612bb3 100644
--- a/audio/manager.c
+++ b/audio/manager.c
@@ -1337,13 +1337,13 @@ static GIOChannel *server_socket(uint8_t *channel, gboolean master)
addr.rc_channel = channel ? *channel : 0;
if (bind(sock, (struct sockaddr *) &addr, sizeof(addr)) < 0) {
- error("server bind: %s", strerror(errno), errno);
+ error("server bind: %s (%d)", strerror(errno), errno);
close(sock);
return NULL;
}
if (listen(sock, 1) < 0) {
- error("server listen: %s", strerror(errno), errno);
+ error("server listen: %s (%d)", strerror(errno), errno);
close(sock);
return NULL;
}