From: Simon Wilkinson Date: Mon, 11 Oct 2010 17:40:41 +0000 (-0400) Subject: rx: Indent dpf definition X-Git-Tag: upstream/1.8.0_pre1^2~4688 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=d8434eefa78f3e3d4b3d0e265aa47d0617fcc4aa;p=packages%2Fo%2Fopenafs.git 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 --- diff --git a/src/rx/rx_globals.h b/src/rx/rx_globals.h index 37d7bad6d..e8b947baa 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) -#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 +# 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 -#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 */