wispr: Adding some useful debug outputs
authorTomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
Wed, 2 May 2012 13:46:07 +0000 (16:46 +0300)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Fri, 4 May 2012 08:09:33 +0000 (11:09 +0300)
src/wispr.c

index 0815330..b56a649 100644 (file)
@@ -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;
        }