diff options
author | Josh Cepek <josh.cepek@usa.net> | 2013-02-21 09:50:38 -0600 |
---|---|---|
committer | Gert Doering <gert@greenie.muc.de> | 2013-03-14 16:38:09 +0100 |
commit | 6c61d0dd339084175f6911d8b713faaf4967ca03 (patch) | |
tree | 657091a418738eb8962afed5747a5e7f3b0e84e9 /src/openvpn/route.c | |
parent | 704d9273b6e0e253b62eb728fddd5bbb02503eea (diff) | |
download | openvpn-6c61d0dd339084175f6911d8b713faaf4967ca03.tar.gz openvpn-6c61d0dd339084175f6911d8b713faaf4967ca03.tar.xz openvpn-6c61d0dd339084175f6911d8b713faaf4967ca03.zip |
Fix parameter listing in non-debug builds at verb 4
When built with enable_debug=no, the parameter output expected at --verb
4 is not printed due to use of #ifdef ENABLE_DEBUG in the responsible
code sections. This appears to be a mistake when looking at the
configure help text for enable_small and enable_debug.
This change keys the relevant code off of enable_small instead,
including the parameter listing when enale_small=no (the
configure-script default.) Most of this code is in options.c, with some
callers present in plugin.c/h and route.c/h. No function code is
changed, just the #ifdef values to use the small feature instead of
debug.
This means builds no longer need enable_debug=yes in order to get the
expected log output at verb 4.
Signed-off-by: Josh Cepek <josh.cepek@usa.net>
Acked-by: Arne Schwabe <arne@rfc2549.org>
Message-Id: <437RBuq1U8032S07.1361465626@web07.cms.usa.net>
URL: http://article.gmane.org/gmane.network.openvpn.devel/7361
Signed-off-by: Gert Doering <gert@greenie.muc.de>
Diffstat (limited to 'src/openvpn/route.c')
-rw-r--r-- | src/openvpn/route.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openvpn/route.c b/src/openvpn/route.c index dd69d8e..134ed58 100644 --- a/src/openvpn/route.c +++ b/src/openvpn/route.c @@ -1089,7 +1089,7 @@ delete_routes (struct route_list *rl, struct route_ipv6_list *rl6, } } -#ifdef ENABLE_DEBUG +#ifndef ENABLE_SMALL static const char * show_opt (const char *option) |