~ampelbein/ubuntu/oneiric/heartbeat/lp-770743

« back to all changes in this revision

Viewing changes to lrm/lrmd/lrmd.h

  • Committer: Bazaar Package Importer
  • Author(s): Ante Karamatic
  • Date: 2009-08-10 19:29:25 UTC
  • mfrom: (5.2.3 experimental)
  • Revision ID: james.westby@ubuntu.com-20090810192925-9zy2llcbgavbskf7
Tags: 2.99.2+sles11r9-5ubuntu1
* New upstream snapshot
* Adjusted heartbeat.install and rules for documentation path

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
#define lrm_str(p)      (lrmd_nullcheck(p))
32
32
 
33
33
#define CHECK_ALLOCATED(thing, name, result)                            \
34
 
        if (!cl_is_allocated(thing)) {                                  \
 
34
        if (!thing) {                                   \
35
35
                lrmd_log(LOG_ERR                                        \
36
36
                ,       "%s: %s pointer 0x%lx is not allocated."        \
37
37
                ,       __FUNCTION__, name, (unsigned long)thing);      \
38
38
                if (!in_alloc_dump) {                                   \
39
39
                        in_alloc_dump = TRUE;                           \
40
 
                        dump_mem_stats();                               \
41
40
                        dump_data_for_debug();                          \
42
41
                        in_alloc_dump = FALSE;                          \
43
42
                        return result;                                  \