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.h | |
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.h')
-rw-r--r-- | src/openvpn/route.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openvpn/route.h b/src/openvpn/route.h index e63db59..a40de32 100644 --- a/src/openvpn/route.h +++ b/src/openvpn/route.h @@ -290,7 +290,7 @@ void print_default_gateway(const int msglevel, const struct route_gateway_info * #define TLA_LOCAL 2 int test_local_addr (const in_addr_t addr, const struct route_gateway_info *rgi); -#ifdef ENABLE_DEBUG +#ifndef ENABLE_SMALL void print_route_options (const struct route_option_list *rol, int level); #endif |