From: Francois Fleuret Date: Wed, 19 Dec 2012 16:25:46 +0000 (+0100) Subject: Cosmetics in the error messages. X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=d404d76f0edfa147653d360ec5f1aeb85d13ff88;p=mtp.git Cosmetics in the error messages. --- diff --git a/mtp_graph.cc b/mtp_graph.cc index 4a73a43..9bce055 100644 --- a/mtp_graph.cc +++ b/mtp_graph.cc @@ -227,7 +227,7 @@ void MTPGraph::force_positivized_lengths() { } } #ifdef VERBOSE - cerr << "residual_error " << residual_error << " max_error " << residual_error << endl; + cerr << __FILE__ << ": residual_error " << residual_error << " max_error " << residual_error << endl; #endif } @@ -417,7 +417,7 @@ void MTPGraph::find_best_paths(scalar_t *lengths) { // If that length is negative if(total_length < 0.0) { #ifdef VERBOSE - cerr << "Found a path of length " << total_length << endl; + cerr << __FILE__ << ": Found a path of length " << total_length << endl; #endif // Invert all the edges along the best path v = _sink; @@ -464,12 +464,12 @@ int MTPGraph::retrieve_one_path(Edge *e, Path *path) { #ifdef DEBUG if(nb_occupied_next == 0) { - cerr << "retrieve_one_path: Non-sink end point." << endl; + cerr << __FILE__ << ": retrieve_one_path: Non-sink end point." << endl; abort(); } else if(nb_occupied_next > 1) { - cerr << "retrieve_one_path: Non node-disjoint paths." << endl; + cerr << __FILE__ << ": retrieve_one_path: Non node-disjoint paths." << endl; abort(); } #endif