From: Steve Harter Date: Fri, 30 Jun 2017 18:41:46 +0000 (-0500) Subject: Remove extra carriage return on trace output (dotnet/core-setup#2742) X-Git-Tag: submit/tizen/20210909.063632~11032^2~1243 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=86e2681293d9ce2a6b4f057cac870e168ea70670;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Remove extra carriage return on trace output (dotnet/core-setup#2742) Commit migrated from https://github.com/dotnet/core-setup/commit/cd4b109ac38a8558ee6e8799540ab280976664ac --- diff --git a/src/installer/corehost/common/pal.h b/src/installer/corehost/common/pal.h index 76fb18e..0e8e995 100644 --- a/src/installer/corehost/common/pal.h +++ b/src/installer/corehost/common/pal.h @@ -129,8 +129,8 @@ namespace pal pal::string_t to_lower(const pal::string_t& in); inline size_t strlen(const char_t* str) { return ::wcslen(str); } - inline void err_vprintf(const char_t* format, va_list vl) { ::vfwprintf(stderr, format, vl); ::fputws(_X("\r\n"), stderr); } - inline void out_vprintf(const char_t* format, va_list vl) { ::vfwprintf(stdout, format, vl); ::fputws(_X("\r\n"), stdout); } + inline void err_vprintf(const char_t* format, va_list vl) { ::vfwprintf(stderr, format, vl); ::fputwc(_X('\n'), stderr); } + inline void out_vprintf(const char_t* format, va_list vl) { ::vfwprintf(stdout, format, vl); ::fputwc(_X('\n'), stdout); } bool pal_utf8string(const pal::string_t& str, std::vector* out); bool utf8_palstring(const std::string& str, pal::string_t* out);