From: Tomasz Bursztyka Date: Wed, 2 May 2012 13:46:07 +0000 (+0300) Subject: wispr: Adding some useful debug outputs X-Git-Tag: 2.0_alpha~281 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=81bd485cabb6068839f33411b59e17726ee16121;p=framework%2Fconnectivity%2Fconnman.git wispr: Adding some useful debug outputs --- 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; }