From e12220c94a4fda7c987e24e3368e3f76760f18ec Mon Sep 17 00:00:00 2001 From: Jukka Rissanen Date: Wed, 13 Feb 2013 17:29:00 +0200 Subject: vpn-provider: Make state debug print more useful Print the state value as a string as it is useful information. --- vpn/vpn-provider.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'vpn/vpn-provider.c') diff --git a/vpn/vpn-provider.c b/vpn/vpn-provider.c index 8b68dba3..2519dd52 100644 --- a/vpn/vpn-provider.c +++ b/vpn/vpn-provider.c @@ -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; -- cgit v1.2.3