#define dout(x) if ((x) <= g_conf.debug) std::cout
#define dout2(x) if ((x) <= g_conf.debug) std::cout
+#define pdout(x,p) if ((x) <= (p)) std::cout
+
/**
* for cleaner output, bracket each line with
* dbeginl (in the dout macro) and dendl (in place of endl).
if (waiting.empty())
get(PIN_WAITER);
waiting.insert(pair<int,Context*>(mask, c));
- dout(10) << (mdsco_db_line_prefix(this))
+ pdout(10,g_conf.debug_mds) << (mdsco_db_line_prefix(this))
<< "add_waiter " << mask << " " << c
<< " on " << *this
<< endl;
while (it != waiting.end()) {
if (it->first & mask) {
ls.push_back(it->second);
- dout(10) << (mdsco_db_line_prefix(this))
+ pdout(10,g_conf.debug_mds) << (mdsco_db_line_prefix(this))
<< "take_waiting mask " << mask << " took " << it->second
<< " tag " << it->first
<< " on " << *this
<< endl;
waiting.erase(it++);
} else {
- dout(10) << "take_waiting mask " << mask << " SKIPPING " << it->second
+ pdout(10,g_conf.debug_mds) << "take_waiting mask " << mask << " SKIPPING " << it->second
<< " tag " << it->first
<< " on " << *this
<< endl;