From 81bd485cabb6068839f33411b59e17726ee16121 Mon Sep 17 00:00:00 2001 From: Tomasz Bursztyka Date: Wed, 2 May 2012 16:46:07 +0300 Subject: [PATCH] wispr: Adding some useful debug outputs --- src/wispr.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wispr.c b/src/wispr.c index 0815330..b56a649 100644 --- a/src/wispr.c +++ b/src/wispr.c @@ -790,18 +790,21 @@ static int wispr_portal_detect(struct connman_wispr_portal_context *wp_context) if_index = connman_inet_ifindex(interface); if (if_index < 0) { + DBG("Could not get ifindex"); err = -EINVAL; goto done; } nameservers = connman_service_get_nameservers(wp_context->service); if (nameservers == NULL) { + DBG("Could not get nameservers"); err = -EINVAL; goto done; } wp_context->web = g_web_new(if_index); if (wp_context->web == NULL) { + DBG("Could not set up GWeb"); err = -ENOMEM; goto done; } -- 2.7.4