vpn-provider: Make state debug print more useful
authorJukka Rissanen <jukka.rissanen@linux.intel.com>
Wed, 13 Feb 2013 15:29:00 +0000 (17:29 +0200)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Tue, 19 Feb 2013 10:51:41 +0000 (12:51 +0200)
Print the state value as a string as it is useful information.

vpn/vpn-provider.c

index 8b68dba..2519dd5 100644 (file)
@@ -1179,9 +1179,8 @@ static int provider_indicate_state(struct vpn_provider *provider,
 {
        const char *str;
 
-       DBG("provider %p state %d", provider, state);
-
        str = state2string(state);
+       DBG("provider %p state %s/%d", provider, str, state);
        if (str == NULL)
                return -EINVAL;