From 179c941fad53462d601efaced48bd341d72e2204 Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Mon, 31 Jul 2006 20:01:19 +0000 Subject: [PATCH] STABLE14-fslog-dpf-20060731 turns out it's nice to log why we exit (cherry picked from commit 75922872e6c29bd059db3b07b7b274e3c4172715) --- src/rx/rx_globals.h | 4 ++++ src/tviced/Makefile.in | 8 +++++++- src/tvolser/Makefile.in | 7 ++++++- 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/src/rx/rx_globals.h b/src/rx/rx_globals.h index 90fd15e73..a3df75aa5 100644 --- a/src/rx/rx_globals.h +++ b/src/rx/rx_globals.h @@ -510,7 +510,11 @@ EXT FILE *rxevent_debugFile; /* Set to an stdio descriptor for event logging to #ifdef AFS_NT40_ENV #define dpf(args) rxi_DebugPrint args; #else +#ifdef DPF_FSLOG +#define dpf(args) FSLog args +#else #define dpf(args) if (rx_debugFile) rxi_DebugPrint args; else +#endif #endif #define rx_Log_event rxevent_debugFile diff --git a/src/tviced/Makefile.in b/src/tviced/Makefile.in index b10e1a4ca..f7c234f5f 100644 --- a/src/tviced/Makefile.in +++ b/src/tviced/Makefile.in @@ -15,6 +15,7 @@ CFLAGS=${COMMON_CFLAGS} -I.. -DNINTERFACE ${MT_CFLAGS} -DRXDEBUG CCRULE=${CC} ${CFLAGS} -c $? +RX=../rx VICED=../viced VLSERVER=../vlserver LWP=../lwp @@ -42,13 +43,18 @@ VOLOBJS= vnode.o volume.o vutil.o partition.o fssync.o purge.o \ FSINTOBJS= afsaux.o afscbint.cs.o afsint.ss.o afsint.xdr.o +RXOBJS = rx_pthread.o + objects= ${VICEDOBJS} ${VLSERVEROBJS} ${LWPOBJS} ${LIBACLOBJS} \ - ${UTILOBJS} ${DIROBJS} ${VOLOBJS} ${FSINTOBJS} + ${UTILOBJS} ${DIROBJS} ${VOLOBJS} ${FSINTOBJS} ${RXOBJS} LIBS=${TOP_LIBDIR}/libafsauthent.a ${TOP_LIBDIR}/libafsrpc.a ${TOP_LIBDIR}/util.a all: fileserver +rx_pthread.o: ${RX}/rx_pthread.c + ${CCRULE} -DDPF_FSLOG + viced.o: ${VICED}/viced.c ${CCRULE} diff --git a/src/tvolser/Makefile.in b/src/tvolser/Makefile.in index 8b8b1a757..153446df9 100644 --- a/src/tvolser/Makefile.in +++ b/src/tvolser/Makefile.in @@ -23,6 +23,7 @@ DIR=../dir VOL=../vol FSINT=../fsint VOLSER=../volser +RX=../rx VOLSEROBJS=volmain.o volprocs.o physio.o voltrans.o volerr.o volint.cs.o dumpstuff.o volint.ss.o volint.xdr.o vscommon.o @@ -41,8 +42,10 @@ VOLOBJS= vnode.o volume.o vutil.o partition.o fssync.o purge.o \ FSINTOBJS=# afsaux.o afscbint.cs.o afsint.ss.o afsint.xdr.o +RXOBJS=rx_pthread.o + objects= ${VOLSEROBJS} ${VLSERVEROBJS} ${LWPOBJS} ${LIBACLOBJS} \ - ${UTILOBJS} ${DIROBJS} ${VOLOBJS} ${FSINTOBJS} + ${UTILOBJS} ${DIROBJS} ${VOLOBJS} ${FSINTOBJS} ${RXOBJS} LIBS=${TOP_LIBDIR}/libafsauthent.a ${TOP_LIBDIR}/libafsrpc.a ${TOP_LIBDIR}/util.a @@ -50,6 +53,8 @@ all: volserver COMPILE=${CC} ${CFLAGS} -c $? +rx_pthread.o: ${RX}/rx_pthread.c + ${COMPILE} -DDPF_FSLOG volmain.o: ${VOLSER}/volmain.c ${COMPILE} volprocs.o: ${VOLSER}/volprocs.c -- 2.39.5