From: David Steele Date: Tue, 12 Jan 2016 17:34:41 +0000 (+0000) Subject: Reporting dali version on stderr instead of stdout X-Git-Tag: dali_1.1.18~3 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=commitdiff_plain;h=2f5d4ba8f28af430695ea2a6692fb3d11310af99 Reporting dali version on stderr instead of stdout Can use JSON parser directly from library without requiring a dali application. If the writer is used to write to stdout, then the output is 'corrupted' by having the library version numbers within it. It is better instead to report the version numbers on stderr (Better still to log them, rather than using stream). Change-Id: Ie1cb6b1e3cc04a6e4f643ed4d6336f33b2e025f0 --- diff --git a/dali-toolkit/public-api/dali-toolkit-version.cpp b/dali-toolkit/public-api/dali-toolkit-version.cpp index f8d7918..9f79c9c 100644 --- a/dali-toolkit/public-api/dali-toolkit-version.cpp +++ b/dali-toolkit/public-api/dali-toolkit-version.cpp @@ -42,7 +42,7 @@ struct PrintVersion { PrintVersion() { - std::cout << "DALi Toolkit: " << TOOLKIT_MAJOR_VERSION << "." << TOOLKIT_MINOR_VERSION << "." << TOOLKIT_MICRO_VERSION << " (" << TOOLKIT_BUILD_DATE << ")" << std::endl; + std::cerr << "DALi Toolkit: " << TOOLKIT_MAJOR_VERSION << "." << TOOLKIT_MINOR_VERSION << "." << TOOLKIT_MICRO_VERSION << " (" << TOOLKIT_BUILD_DATE << ")" << std::endl; } }; PrintVersion TOOLKIT_VERSION;