]> git.cworth.org Git - apitrace/commitdiff
trim: Move explanatory message from stdout to stderr.
authorCarl Worth <cworth@cworth.org>
Fri, 17 Aug 2012 21:23:13 +0000 (14:23 -0700)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Thu, 22 Nov 2012 08:03:38 +0000 (08:03 +0000)
This prevents this message from corrupting the output of:

apitrace trim --print-callset ... > callset-file

cli/cli_trim.cpp

index 080c131c9dc223f40f7d2deebbe7e511fe5ace7d..8f0996028ced0e97e8d0a0da9d39a26ef72e22e6 100644 (file)
@@ -303,7 +303,7 @@ trim_trace(const char *filename, struct trim_options *options)
             printf ("-%d\n", call_range_last);
     }
 
-    std::cout << "Trimmed trace is available as " << options->output << "\n";
+    std::cerr << "Trimmed trace is available as " << options->output << "\n";
 
     return 0;
 }