summaryrefslogtreecommitdiffstats
path: root/network
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2008-03-07 17:45:29 +0000
committerLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2008-03-07 17:45:29 +0000
commitc6638ee5c399991f1496b213de64529fcd8556eb (patch)
tree49a85d5b1df17678ca46a6237691bce332a86852 /network
parent860a1fc8d94dc3edf90f90b4d8aacd6db4b9bd4c (diff)
Report socket error when bridge module fails to load.
Diffstat (limited to 'network')
-rw-r--r--network/bridge.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/network/bridge.c b/network/bridge.c
index c4c3a064..2c8570e4 100644
--- a/network/bridge.c
+++ b/network/bridge.c
@@ -38,6 +38,7 @@
#include <bluetooth/l2cap.h>
#include <bluetooth/bnep.h>
+#include "logging.h"
#include "bridge.h"
#include "common.h"
@@ -55,8 +56,11 @@ int bridge_init(const char *gn_iface, const char *nap_iface)
#endif
bridge_socket = socket(AF_INET, SOCK_STREAM, 0);
- if (bridge_socket < 0)
+ if (bridge_socket < 0) {
+ error("Failed to open bridge socket: %s (%d)",
+ strerror(errno), errno);
return -errno;
+ }
gn_bridge = gn_iface;
nap_bridge = nap_iface;