Commit 7f2e8953 authored by Tarun Prabhu's avatar Tarun Prabhu

Removing unnecessary debug statements which weren't removed earlier in...

Removing unnecessary debug statements which weren't removed earlier in excessive eagerness to commit and push code.
parent 660683fc
......@@ -617,7 +617,6 @@ int mapping_precheck() {
if (type_table.find(this_type) == type_table.end()) {
// Yes, I know, goto is evil. But I'm not gonna indent the next
// 100 lines of code for this error case
cerr << "Can't be a goto now, can it? " << endl;
goto nosuchtype;
}
......@@ -635,7 +634,6 @@ int mapping_precheck() {
if (pnode->total_bandwidth >= v->total_bandwidth) {
matched_bw++;
} else {
cerr << "Not enough bandwidth? on " << pnode->name << endl;
potential_match = false;
}
......@@ -648,7 +646,6 @@ int mapping_precheck() {
} else {
if (v->typecount > type_iterator->second->get_max_load()) {
// Nope, this vnode is too demanding
cerr << "Max load? on " << pnode->name << endl;
potential_match = false;
}
}
......@@ -669,7 +666,6 @@ int mapping_precheck() {
if (fdit.either_violateable()) {
if (fdit.membership() !=
tb_featuredesire_set_iterator::BOTH) {
cerr << "not a fat chance " << fdit.membership() << " "<< fdit->name() << endl;
potential_match = false;
}
......@@ -716,11 +712,9 @@ int mapping_precheck() {
// Great, there are enough, too
matched_link_counts[type]++;
} else {
cerr << "link_counts? " << endl;
potential_match = false;
}
} else {
cerr << "Surely not! " << endl;
potential_match = false;
}
}
......
......@@ -118,7 +118,7 @@ int parse_advertisement(tb_pgraph &pg, tb_sgraph &sg, char *filename) {
* If there are any errors, do not go any further
*/
if (errHandler->sawError()) {
cerr << "There were " << domParser -> getErrorCount ()
cout << "*** There were " << domParser -> getErrorCount ()
<< " errors in " << filename << endl;
exit(EXIT_FATAL);
}
......@@ -189,7 +189,7 @@ int parse_advertisement(tb_pgraph &pg, tb_sgraph &sg, char *filename) {
}
XMLDEBUG("Finishing setting policies" << endl);
cerr << "RSpec parsing finished" << endl;
XMLDEBUG("RSpec parsing finished" << endl);
}
/*
......
......@@ -198,7 +198,7 @@ int parse_request(tb_vgraph &vg, char *filename) {
/* TODO: We need to do something about policies at some point. */
//populate_policies(root);
cerr << "RSpec parsing finished" << endl;
XMLDEBUG("RSpec parsing finished" << endl);
}
/*
......@@ -331,14 +331,10 @@ bool populate_node(DOMElement* elt,
if (no_type) {
// If they gave no type, just assume it's a PC for
// now. This is not really a good assumption.
cerr << "no type defaults to: " << typeName.c_str() << endl;
v = new tb_vnode(virtualId.c_str(), typeName.c_str(),
typeSlots);
}
else {
v = new tb_vnode(virtualId.c_str(),
typeName.c_str(), typeSlots);
cerr << "WARNING: No type information found on node. "
<< "Defaulting to " << typeName.c_str() << endl;
}
v = new tb_vnode(virtualId.c_str(), typeName.c_str(), typeSlots);
// Construct the vertex
if (disallow_trivial_mix) {
......@@ -353,7 +349,6 @@ bool populate_node(DOMElement* elt,
bool hasExclusive;
string exclusive = rspecParser->readExclusive(elt, hasExclusive);
cerr << hasExclusive << " " << exclusive << endl;
if (hasExclusive) {
fstring desirename("shared");
......@@ -414,7 +409,6 @@ bool populate_node(DOMElement* elt,
// If a component manager has been specified, then the node must be
// managed by that CM. We implement this as a desire.
if (hasCMId) {
cerr << "Adding desire " << XStr(cmId.c_str()).f() << endl;
tb_node_featuredesire node_fd (XStr(cmId.c_str()).f(),
0.9);//, false, featuredesire::FD_TYPE_NORMAL);
node_fd.add_desire_user(0.9);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment