Fix -Wformat error in Win-Clang build

rtc::PlatformThreadId is pid_t (32-bit signed int) on Linux and Mac,
but DWORD (32-bit unsigned int) on Windows.

Using the %d printf specifier is therefore not correct on Windows,
and Clang would warn about it:

..\..\third_party\webrtc\base\,46) :  error: format specifies
type 'int' but the argument has type 'rtc::PlatformThreadId' (aka 'unsigned
long') [-Werror,-Wformat]
                e.phase, e.timestamp,, e.tid);

This commit fixes the problem by explicitly casting to int before printing.


Review URL: .

Cr-Commit-Position: refs/heads/master@{#10982}
diff --git a/webrtc/base/ b/webrtc/base/
index dbf85a4..dec323d 100644
--- a/webrtc/base/
+++ b/webrtc/base/
@@ -121,7 +121,7 @@
                 ", \"pid\": %d"
                 ", \"tid\": %d}\n",
                 has_logged_event ? "," : " ",, e.category_enabled,
-                e.phase, e.timestamp,, e.tid);
+                e.phase, e.timestamp, static_cast<int>(, e.tid);
         has_logged_event = true;
       if (shutting_down)