From d404d76f0edfa147653d360ec5f1aeb85d13ff88 Mon Sep 17 00:00:00 2001 From: Francois Fleuret Date: Wed, 19 Dec 2012 17:25:46 +0100 Subject: [PATCH] Cosmetics in the error messages. --- mtp_graph.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 -- 2.39.5