Fix compilation error on some platforms.
authorMatthias Schwarzott <zzam@gentoo.org>
Mon, 18 May 2015 10:05:47 +0000 (12:05 +0200)
committerMilian Wolff <mail@milianw.de>
Mon, 18 May 2015 15:55:50 +0000 (17:55 +0200)
See also: https://bugs.gentoo.org/show_bug.cgi?id=548850

heaptrack_print.cpp

index 3dc5fb4..8b86cf3 100644 (file)
@@ -1010,7 +1010,7 @@ int main(int argc, char** argv)
     if (!printHistogram.empty()) {
         ofstream histogram(printHistogram, ios_base::out);
         if (!histogram.is_open()) {
-            cerr << "Failed to open histogram output file \"" << histogram << "\"." << endl;
+            cerr << "Failed to open histogram output file \"" << printHistogram << "\"." << endl;
         } else {
             for (auto entry : data.sizeHistogram) {
                 histogram << entry.first << '\t' << entry.second << '\n';