cluster/rgmanager ChangeLog include/resgroup.h ...
CVSROOT: /cvs/cluster
Module name: cluster
Changes by: fabbione at sourceware.org 2007-12-30 08:27:21
Modified files:
rgmanager : ChangeLog
rgmanager/include: resgroup.h
rgmanager/src/clulib: alloc.c
rgmanager/src/daemons: rg_state.c
Log message:
Fix building when -DDEBUG is defined.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/ChangeLog.diff?cvsroot=cluster&r1=1.69&r2=1.70
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/include/resgroup.h.diff?cvsroot=cluster&r1=1.26&r2=1.27
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/clulib/alloc.c.diff?cvsroot=cluster&r1=1.12&r2=1.13
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/daemons/rg_state.c.diff?cvsroot=cluster&r1=1.43&r2=1.44
rgmanager/ChangeLog +4 -0
@@ -1,3 +1,7 @@ +2007-12-30 Fabio M. Di Nitto <[email protected]> + * src/daemons/rg_state.c, include/resgroup.h, src/clulib/alloc.c: + Fix building when -DDEBUG is defined. + 2007-12-24 Fabio M. Di Nitto <[email protected]> * src/clulib/vft.c: Change ifdef to fix build on parisc.
rgmanager/include/resgroup.h +1 -1
@@ -186,7 +186,7 @@#define rg_lock (name, p) _rg_lock_dbg(name, p, __FILE__, __LINE__)int _rg_unlock_dbg (struct dlm_lksb *,char *,int ); -#define rg_unlock (name, p) _rg_unlock_dbg(name, p, __FILE__, __LINE__) +#define rg_unlock (p) _rg_unlock_dbg(p, __FILE__, __LINE__)#else int rg_lock (char *name,struct dlm_lksb *p);
rgmanager/src/clulib/alloc.c +3 -1
@@ -116,10 +116,12 @@#include <unistd.h> #include <sys/wait.h> -#if !defined(__ia64__) && !defined(__hppa__)#ifndef DEBUG #define DEBUG /* Record program counter of malloc/calloc */ #endif /* or realloc call; print misc stuff out */ + +#if defined(__ia64__) || defined(__hppa__) +#undef DEBUG#endif /* Tunable stuff XXX This should be external */
rgmanager/src/daemons/rg_state.c +1 -2
@@ -195,7 +195,6 @@ return _rg_lock(name, p); }#endif -int
@@ -211,7 +210,7 @@#ifdef DEBUG int -_rg_unlock_dbg (void *p,char *file,int line) +_rg_unlock_dbg (struct dlm_lksb *p,char *file,int line) {dprintf ("rg_unlock() @ %s:%d\n" , file, line);return _rg_unlock (p);