diff options
author | Colin Patrick McCabe <cmccabe@alumni.cmu.edu> | 2011-01-03 21:22:56 +0100 |
---|---|---|
committer | Colin Patrick McCabe <cmccabe@alumni.cmu.edu> | 2011-01-03 21:22:56 +0100 |
commit | 62e4cdea62791c8b03fd4c47cadfd59bcb867908 (patch) | |
tree | ca51fc0a5100c2d36b86162d931db07360374ea2 /src/common/assert.cc | |
parent | rbd: add watch option for rbd tool (diff) | |
download | ceph-62e4cdea62791c8b03fd4c47cadfd59bcb867908.tar.xz ceph-62e4cdea62791c8b03fd4c47cadfd59bcb867908.zip |
common: print thread ID in sig handlers and assert
Signed-off-by: Colin McCabe <colinm@hq.newdream.net>
Diffstat (limited to 'src/common/assert.cc')
-rw-r--r-- | src/common/assert.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/assert.cc b/src/common/assert.cc index ca28bbf7767..e80cb362972 100644 --- a/src/common/assert.cc +++ b/src/common/assert.cc @@ -13,7 +13,8 @@ void __ceph_assert_fail(const char *assertion, const char *file, int line, const BackTrace *bt = new BackTrace(1); _dout_lock.Lock(); - *_dout << file << ": In function '" << func << "':" << std::endl; + *_dout << file << ": In function '" << func << "', " + << "In thread " << pthread_self() << std::endl; *_dout << file << ":" << line << ": FAILED assert(" << assertion << ")" << std::endl; bt->print(*_dout); *_dout << " NOTE: a copy of the executable, or `objdump -rdS <executable>` is needed to interpret this." << std::endl; |