summaryrefslogtreecommitdiffstats
path: root/src/common/assert.cc
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2011-01-04 19:50:06 +0100
committerSage Weil <sage@newdream.net>2011-01-04 19:50:06 +0100
commitaafb79c77305d9298fda92eb9bf792fd9af04738 (patch)
tree425516c9c75ca367f0dfb1d225861acf570a6e6e /src/common/assert.cc
parentclient: fix frag selection code (diff)
downloadceph-aafb79c77305d9298fda92eb9bf792fd9af04738.tar.xz
ceph-aafb79c77305d9298fda92eb9bf792fd9af04738.zip
assert: print thread id in hex
Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'src/common/assert.cc')
-rw-r--r--src/common/assert.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/assert.cc b/src/common/assert.cc
index e80cb362972..6b83c522953 100644
--- a/src/common/assert.cc
+++ b/src/common/assert.cc
@@ -14,7 +14,7 @@ void __ceph_assert_fail(const char *assertion, const char *file, int line, const
_dout_lock.Lock();
*_dout << file << ": In function '" << func << "', "
- << "In thread " << pthread_self() << std::endl;
+ << "In thread " << hex << pthread_self() << dec << 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;