]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
assert: print thread id in hex
authorSage Weil <sage@newdream.net>
Tue, 4 Jan 2011 18:50:06 +0000 (10:50 -0800)
committerSage Weil <sage@newdream.net>
Tue, 4 Jan 2011 18:50:06 +0000 (10:50 -0800)
Signed-off-by: Sage Weil <sage@newdream.net>
src/common/assert.cc

index e80cb362972681ce73f575ffd04fbd27e2f95415..6b83c522953de2650b2fec8869152b3eb2ab1e91 100644 (file)
@@ -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;