Index: runtime/vm/thread_test.cc |
diff --git a/runtime/vm/thread_test.cc b/runtime/vm/thread_test.cc |
index 99302caf787a7c6b2d557ae032f868ef5995d43a..9651dff66c8bd04b75b34172c9129b3e82848c34 100644 |
--- a/runtime/vm/thread_test.cc |
+++ b/runtime/vm/thread_test.cc |
@@ -335,18 +335,20 @@ TEST_CASE(ManySimpleTasksWithZones) { |
char* zone_info_buf = |
OS::SCreate(current_zone, |
"\"type\":\"_Zone\"," |
- "\"capacity\":%ld," |
- "\"used\":%ld", |
+ "\"capacity\":%" Pd |
+ "," |
+ "\"used\":%" Pd "", |
top_zone->SizeInBytes(), top_zone->UsedSizeInBytes()); |
EXPECT_SUBSTRING(zone_info_buf, json); |
top_zone = top_zone->previous(); |
} |
// Check the thread exists and is the correct size. |
- char* thread_info_buf = OS::SCreate(current_zone, |
- "\"type\":\"_Thread\"," |
- "\"id\":\"threads\\/%" Pd64 "", |
- thread->os_thread()->trace_id()); |
+ char* thread_info_buf = OS::SCreate( |
+ current_zone, |
+ "\"type\":\"_Thread\"," |
+ "\"id\":\"threads\\/%" Pd "", |
+ OSThread::ThreadIdToIntPtr(thread->os_thread()->trace_id())); |
// Ensure the isolate for each thread is valid. |