From: Carl Worth Date: Fri, 17 Aug 2012 21:23:13 +0000 (-0700) Subject: trim: Move explanatory message from stdout to stderr. X-Git-Url: https://git.cworth.org/git?p=apitrace;a=commitdiff_plain;h=1a800a1bee0231d0b9bd35450dfa9a29702d29dc trim: Move explanatory message from stdout to stderr. This prevents this message from corrupting the output of: apitrace trim --print-callset ... > callset-file --- diff --git a/cli/cli_trim.cpp b/cli/cli_trim.cpp index 080c131..8f09960 100644 --- a/cli/cli_trim.cpp +++ b/cli/cli_trim.cpp @@ -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; }