summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2007-01-24 15:43:06 +0000
committerMarcel Holtmann <marcel@holtmann.org>2007-01-24 15:43:06 +0000
commitb992c01c50b195751dbe288061d24b4126550a1c (patch)
treed04635437ca18801402b78b01365ba22bb1c6282
parentab5967b2b95955accb3aad59f65e1eae6c6bd7ef (diff)
Add errors when server setup fails
-rw-r--r--input/server.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/input/server.c b/input/server.c
index 4f553d7e..b37c35ff 100644
--- a/input/server.c
+++ b/input/server.c
@@ -282,11 +282,14 @@ static GIOChannel *intr_io = NULL;
int server_start(void)
{
ctrl_io = setup_l2cap(17);
- if (!ctrl_io)
+ if (!ctrl_io) {
+ error("Failed to listen on control channel");
return -1;
+ }
intr_io = setup_l2cap(19);
if (!intr_io) {
+ error("Failed to listen on interrupt channel");
g_io_channel_unref(ctrl_io);
ctrl_io = NULL;
}