Change formatting of DEBUG_TRACE calls to match style guide

This commit is contained in:
Tim Mayberry 2014-06-20 11:07:29 +10:00 committed by Paul Davis
parent cb3a604936
commit a226068959

View file

@ -127,10 +127,8 @@ find_files_matching_pattern (vector<string>& result,
string filename = Glib::path_get_basename (*file_iter); string filename = Glib::path_get_basename (*file_iter);
if (!pattern.match(filename)) continue; if (!pattern.match(filename)) continue;
DEBUG_TRACE ( DEBUG_TRACE (DEBUG::FileUtils,
DEBUG::FileUtils, string_compose("Found file %1\n", *file_iter));
string_compose("Found file %1\n", *file_iter)
);
result.push_back(*file_iter); result.push_back(*file_iter);
} }
@ -155,29 +153,24 @@ find_file (const Searchpath& search_path,
find_files_matching_pattern (tmp, search_path, filename); find_files_matching_pattern (tmp, search_path, filename);
if (tmp.size() == 0) if (tmp.size() == 0) {
{ DEBUG_TRACE (DEBUG::FileUtils,
DEBUG_TRACE ( string_compose("No file matching %1 found in Path: %2\n",
DEBUG::FileUtils, filename, search_path.to_string()));
string_compose("No file matching %1 found in Path: %2\n", filename, search_path.to_string())
);
return false; return false;
} }
if (tmp.size() != 1) if (tmp.size() != 1) {
{ DEBUG_TRACE (DEBUG::FileUtils,
DEBUG_TRACE ( string_compose("Found more that one file matching %1 in Path: %2\n",
DEBUG::FileUtils, filename, search_path.to_string()));
string_compose("Found more that one file matching %1 in Path: %2\n", filename, search_path.to_string())
);
} }
result = tmp.front(); result = tmp.front();
DEBUG_TRACE ( DEBUG_TRACE (DEBUG::FileUtils,
DEBUG::FileUtils, string_compose("Found file %1 in Path: %2\n",
string_compose("Found file %1 in Path: %2\n", filename, search_path.to_string()) filename, search_path.to_string()));
);
return true; return true;
} }