From: Jeffrey Altman Date: Sat, 18 Jul 2009 07:46:21 +0000 (-0400) Subject: Correct ifdefs in rx.c for rx packet debugging X-Git-Tag: openafs-devel-1_5_61~87 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=2797f8380a700eee870fbd3a5fb08a2cb4ea1deb;p=packages%2Fo%2Fopenafs.git Correct ifdefs in rx.c for rx packet debugging Reported by Marc Dionne Fix two sets of ifdefs in rx.c required for RXPACKET_DEBUG. LICENSE BSD Reviewed-on: http://gerrit.openafs.org/http://gerrit.openafs.org/152 Tested-by: Jeffrey Altman Reviewed-by: Jeffrey Altman --- diff --git a/src/rx/rx.c b/src/rx/rx.c index c49a0a21b..f91c6cfbf 100644 --- a/src/rx/rx.c +++ b/src/rx/rx.c @@ -2165,13 +2165,13 @@ rxi_FindService(osi_socket socket, u_short serviceId) return 0; } -#ifdef DEBUG +#ifdef RXDEBUG_PACKET #ifdef KDUMP_RX_LOCK static struct rx_call_rx_lock *rx_allCallsp = 0; #else static struct rx_call *rx_allCallsp = 0; #endif -#endif /* DEBUG */ +#endif /* RXDEBUG_PACKET */ /* Allocate a call structure, for the indicated channel of the * supplied connection. The mode and state of the call must be set by @@ -8084,7 +8084,6 @@ DllMain(HINSTANCE dllInstHandle, /* instance handle for this DLL module */ } } -#ifdef AFS_NT40_ENV int rx_DumpCalls(FILE *outputFile, char *cookie) { #ifdef RXDEBUG_PACKET @@ -8144,5 +8143,4 @@ int rx_DumpCalls(FILE *outputFile, char *cookie) return 0; } #endif /* AFS_NT40_ENV */ -#endif