[Xorp-hackers] [PATCH 2/3] xorp: libproto: spt.hh: Fix compiling with debug_fn set to true

Ben Greear greearb at candelatech.com
Mon Jan 30 10:44:24 PST 2012


On 01/27/2012 05:48 AM, igorm at etf.rs wrote:
> From: Igor Maravic<igorm at etf.rs>
>
> Commented definition of DEBUG_PRINT_FUNCTION_NAME,
> so it wouldn't be defined twice.
> First definition of DEBUG_PRINT_FUNCTION_NAME is in cli interface
> if debug_fn is set to true.
>
> Signed-off-by: Igor Maravic<igorm at etf.rs>
> ---
>   xorp/libproto/spt.hh |    2 +-
>   1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/xorp/libproto/spt.hh b/xorp/libproto/spt.hh
> index f5b64ab..f6edadf 100644
> --- a/xorp/libproto/spt.hh
> +++ b/xorp/libproto/spt.hh
> @@ -27,7 +27,7 @@
>   // #define INCREMENTAL_SPT
>
>   //#define DEBUG_LOGGING
> -#define DEBUG_PRINT_FUNCTION_NAME
> +//#define DEBUG_PRINT_FUNCTION_NAME

Just remove the code if it's not needed, instead of commenting it out.

Thanks,
Ben

>
>   #include "libxorp/ref_ptr.hh"
>   #include "libxorp/c_format.hh"


-- 
Ben Greear <greearb at candelatech.com>
Candela Technologies Inc  http://www.candelatech.com



More information about the Xorp-hackers mailing list