From b992c01c50b195751dbe288061d24b4126550a1c Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Wed, 24 Jan 2007 15:43:06 +0000 Subject: Add errors when server setup fails --- input/server.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'input/server.c') 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; } -- cgit