#define DOUT_SUBSYS client
#undef dout_prefix
-#define dout_prefix *_dout << dbeginl << pthread_self() << " client" << whoami << " "
+#define dout_prefix *_dout << dbeginl << std::hex << pthread_self() << std::dec << " client" << whoami << " "
#define tout if (g_conf.client_trace) traceout
#undef dout
#undef derr
-#define dout(l) if (l<=g_conf.debug_lockdep) *_dout << g_clock.now() << " " << pthread_self() << " lockdep: "
-#define derr(l) if (l<=g_conf.debug_lockdep) *_derr << g_clock.now() << " " << pthread_self() << " lockdep: "
+#define dout(l) if (l<=g_conf.debug_lockdep) *_dout << g_clock.now() << " " << std::hex << pthread_self() << std::dec << " lockdep: "
+#define derr(l) if (l<=g_conf.debug_lockdep) *_derr << g_clock.now() << " " << std::hex << pthread_self() << std::dec << " lockdep: "
pthread_mutex_t lockdep_mutex = PTHREAD_MUTEX_INITIALIZER;
#define DOUT_SUBSYS tp
#undef dout_prefix
-#define dout_prefix *_dout << dbeginl << pthread_self() << " " << name << " "
+#define dout_prefix *_dout << dbeginl << std::hex << pthread_self() << std::dec << " " << name << " "
void ThreadPool::worker()
#include "config.h"
#undef dout
-#define dout(l) if (l<=g_conf.debug_lockdep) *_dout << g_clock.now() << " " << pthread_self() << " lockdep: "
+#define dout(l) if (l<=g_conf.debug_lockdep) *_dout << g_clock.now() << " " << std::hex << pthread_self() << std::dec << " lockdep: "
// global
#undef dout
#undef derr
-#define dout(l) if (l<=g_conf.debug_lockdep) *_dout << g_clock.now() << " " << pthread_self() << " tls: "
-#define derr(l) if (l<=g_conf.debug_lockdep) *_derr << g_clock.now() << " " << pthread_self() << " tls: "
+#define dout(l) if (l<=g_conf.debug_lockdep) *_dout << g_clock.now() << " " << std::hex << pthread_self() << std::dec << " tls: "
+#define derr(l) if (l<=g_conf.debug_lockdep) *_derr << g_clock.now() << " " << std::hex << pthread_self() << std::dec << " tls: "
pthread_key_t _tls_key = 0;
#undef dout_prefix
#define dout_prefix _prefix(messenger)
static ostream& _prefix(SimpleMessenger *messenger) {
- return *_dout << dbeginl << pthread_self() << " -- " << messenger->ms_addr << " ";
+ return *_dout << dbeginl << std::hex << pthread_self() << std::dec << " -- " << messenger->ms_addr << " ";
}
#undef dout_prefix
#define dout_prefix _pipe_prefix()
ostream& SimpleMessenger::Pipe::_pipe_prefix() {
- return *_dout << dbeginl << pthread_self()
+ return *_dout << dbeginl << std::hex << pthread_self() << std::dec
<< " -- " << messenger->ms_addr << " >> " << peer_addr << " pipe(" << this
<< " sd=" << sd
<< " pgs=" << peer_global_seq
#define DOUT_SUBSYS journal
#undef dout_prefix
-#define dout_prefix *_dout << dbeginl << pthread_self() << " journal "
+#define dout_prefix *_dout << dbeginl << std::hex << pthread_self() << std::dec << " journal "
int FileJournal::_open(bool forwrite, bool create)
#define DOUT_SUBSYS filestore
#undef dout_prefix
-#define dout_prefix *_dout << dbeginl << pthread_self() << " filestore(" << basedir << ") "
+#define dout_prefix *_dout << dbeginl << std::hex << pthread_self() << std::dec << " filestore(" << basedir << ") "
#include "include/buffer.h"
#define dout_prefix _prefix(*_dout, whoami, osdmap)
static ostream& _prefix(ostream& out, int whoami, OSDMap *osdmap) {
- return out << dbeginl << pthread_self()
+ return out << dbeginl << std::hex << pthread_self() << std::dec
<< " osd" << whoami << " " << (osdmap ? osdmap->get_epoch():0) << " ";
}
#undef dout_prefix
#define dout_prefix _prefix(this, osd->whoami, osd->osdmap)
static ostream& _prefix(PG *pg, int whoami, OSDMap *osdmap) {
- return *_dout << dbeginl<< pthread_self() << " osd" << whoami << " " << (osdmap ? osdmap->get_epoch():0) << " " << *pg << " ";
+ return *_dout << dbeginl<< std::hex << pthread_self() << std::dec << " osd" << whoami << " " << (osdmap ? osdmap->get_epoch():0) << " " << *pg << " ";
}
#undef dout_prefix
#define dout_prefix _prefix(this, osd->whoami, osd->osdmap)
static ostream& _prefix(PG *pg, int whoami, OSDMap *osdmap) {
- return *_dout << dbeginl << pthread_self()
+ return *_dout << dbeginl << std::hex << pthread_self() << std::dec
<< " osd" << whoami
<< " " << (osdmap ? osdmap->get_epoch():0) << " "
<< *pg << " ";
#undef dout_prefix
#define dout_prefix _prefix(this, osd->whoami, osd->osdmap)
static ostream& _prefix(PG *pg, int whoami, OSDMap *osdmap) {
- return *_dout << dbeginl << pthread_self() << " osd" << whoami
+ return *_dout << dbeginl << std::hex << pthread_self() << std::dec << " osd" << whoami
<< " " << (osdmap ? osdmap->get_epoch():0) << " " << *pg << " ";
}