Make the debug print more useful by printing what env vars are missing. --- scripts/openvpn-script.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/scripts/openvpn-script.c b/scripts/openvpn-script.c index e703c86..e3f49cd 100644 --- a/scripts/openvpn-script.c +++ b/scripts/openvpn-script.c @@ -83,7 +83,9 @@ int main(int argc, char *argv[]) reason = getenv("script_type"); if (!busname || !interface || !path || !reason) { - print("Required environment variables not set"); + print("Required environment variables not set; " + "bus=%s iface=%s path=%s reason=%s", + busname, interface, path, reason); ret = 1; goto out; } -- 1.8.3.1 _______________________________________________ connman mailing list connman@connman.net https://lists.connman.net/mailman/listinfo/connman