From 02e749f848fd931127235873288f25dc7be686a9 Mon Sep 17 00:00:00 2001 From: "henrik.lundin@webrtc.org" Date: Tue, 25 Mar 2014 13:39:11 +0000 Subject: [PATCH] Change sprintf format string from %zu to %i The resulting string became wrong on Windows. Instead of printing the numerical value in number_of_streams_, the string "zu" got printed. (Linux and Mac worked fine already.) This will result in a change of statistics name in the performance graphs. R=stefan@webrtc.org Review URL: https://webrtc-codereview.appspot.com/10569005 git-svn-id: http://webrtc.googlecode.com/svn/trunk@5776 4adac7df-926f-26a2-2b94-8c16560cd09d --- webrtc/video/rampup_tests.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webrtc/video/rampup_tests.cc b/webrtc/video/rampup_tests.cc index 1cffed03b4..af74bf17e4 100644 --- a/webrtc/video/rampup_tests.cc +++ b/webrtc/video/rampup_tests.cc @@ -288,7 +288,7 @@ class LowRateStreamObserver : public test::DirectTransport, std::string GetModifierString() { std::string str("_"); char temp_str[5]; - sprintf(temp_str, "%zu", number_of_streams_); + sprintf(temp_str, "%i", static_cast(number_of_streams_)); str += std::string(temp_str); str += "stream"; str += (number_of_streams_ > 1 ? "s" : "");