From d8434eefa78f3e3d4b3d0e265aa47d0617fcc4aa Mon Sep 17 00:00:00 2001 From: Simon Wilkinson Date: Mon, 11 Oct 2010 13:40:41 -0400 Subject: [PATCH] rx: Indent dpf definition Indent the CPP macros that define dpf() so that it's a little bit clearer what's going on. Change-Id: If2ccd637ac063c8400a16725972418224e9c5140 Reviewed-on: http://gerrit.openafs.org/2955 Reviewed-by: Jeffrey Altman Tested-by: Jeffrey Altman --- src/rx/rx_globals.h | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/rx/rx_globals.h b/src/rx/rx_globals.h index 37d7bad6d2..e8b947baae 100644 --- a/src/rx/rx_globals.h +++ b/src/rx/rx_globals.h @@ -561,21 +561,21 @@ EXT FILE *rxevent_debugFile; /* Set to an stdio descriptor for event logging to #endif #ifdef RXDEBUG -#define rx_Log rx_debugFile -#ifdef AFS_NT40_ENV +# define rx_Log rx_debugFile +# ifdef AFS_NT40_ENV EXT int rxdebug_active; -#define dpf(args) do { if (rxdebug_active) rxi_DebugPrint args; } while (0) +# define dpf(args) do { if (rxdebug_active) rxi_DebugPrint args; } while (0) +# else +# ifdef DPF_FSLOG +# include +# define dpf(args) FSLog args +# else +# define dpf(args) do { if (rx_debugFile) rxi_DebugPrint args; } while (0) +# endif +# endif +# define rx_Log_event rxevent_debugFile #else -#ifdef DPF_FSLOG -#include -#define dpf(args) FSLog args -#else -#define dpf(args) do { if (rx_debugFile) rxi_DebugPrint args; } while (0) -#endif -#endif -#define rx_Log_event rxevent_debugFile -#else -#define dpf(args) +# define dpf(args) #endif /* RXDEBUG */ EXT char *rx_packetTypes[RX_N_PACKET_TYPES] GLOBALSINIT(RX_PACKET_TYPES); /* Strings defined in rx.h */