@@ -113,7 +113,7 @@ void CLR_RT_GarbageCollector::ValidateCluster(CLR_RT_HeapCluster *hc)
113
113
#ifdef _WIN64
114
114
CLR_Debug::Printf (" Block exceeds cluster boundary: 0x%016" PRIxPTR " \r\n " , (uintptr_t )ptr);
115
115
#else
116
- CLR_Debug::Printf (" Block exceeds cluster boundary: %08x \r\n " , ptr);
116
+ CLR_Debug::Printf (" Block exceeds cluster boundary: 0x%08 " PRIxPTR " \r\n " , ( uintptr_t ) ptr)
117
117
#endif
118
118
119
119
NANOCLR_DEBUG_STOP ();
@@ -135,7 +135,9 @@ void CLR_RT_GarbageCollector::ValidateCluster(CLR_RT_HeapCluster *hc)
135
135
" Overlapping blocks detected. Next block of 0x%016" PRIxPTR " is overlapping it.\r\n " ,
136
136
(uintptr_t )ptr);
137
137
#else
138
- CLR_Debug::Printf (" Overlapping blocks detected: Next block of %08x is overlapping it.\r\n " , ptr);
138
+ CLR_Debug::Printf (
139
+ " Overlapping blocks detected: Next block of 0x%08" PRIxPTR " is overlapping it.\r\n " ,
140
+ (uintptr_t )ptr);
139
141
#endif
140
142
}
141
143
}
@@ -157,8 +159,8 @@ void CLR_RT_GarbageCollector::ValidateCluster(CLR_RT_HeapCluster *hc)
157
159
(uintptr_t )ptr);
158
160
#else
159
161
CLR_Debug::Printf (
160
- " Overlapping blocks detected: Previous block of %08x is overlapping it.\r\n " ,
161
- ptr);
162
+ " Overlapping blocks detected: Previous block of 0x%08 " PRIxPTR " is overlapping it.\r\n " ,
163
+ ( uintptr_t ) ptr);
162
164
#endif
163
165
}
164
166
}
@@ -207,7 +209,11 @@ void CLR_RT_GarbageCollector::ValidateBlockNotInFreeList(CLR_RT_DblLinkedList &l
207
209
(uintptr_t )ptr,
208
210
(uintptr_t )ptrEnd);
209
211
#else
210
- CLR_Debug::Printf (" Pointer into free list!! %08x %08x %08x\r\n " , dst, ptr, ptrEnd);
212
+ CLR_Debug::Printf (
213
+ " Pointer into free list!! 0x%08" PRIxPTR " 0x%08" PRIxPTR " 0x%08" PRIxPTR " \r\n " ,
214
+ (uintptr_t )dst,
215
+ (uintptr_t )ptr,
216
+ (uintptr_t )ptrEnd);
211
217
#endif
212
218
213
219
NANOCLR_DEBUG_STOP ();
@@ -299,7 +305,7 @@ bool CLR_RT_GarbageCollector::TestPointers_PopulateOld_Worker(void **ref)
299
305
#ifdef _WIN64
300
306
CLR_Debug::Printf (" Duplicate base OLD: 0x%016" PRIxPTR " \r\n " , (uintptr_t )ref);
301
307
#else
302
- CLR_Debug::Printf (" Duplicate base OLD: %08x \r\n " , ref);
308
+ CLR_Debug::Printf (" Duplicate base OLD: 0x%08 " PRIxPTR " \r\n " , ( uintptr_t ) ref);
303
309
#endif
304
310
// need to free the memory allocated for the record
305
311
platform_free (ptr);
@@ -314,7 +320,7 @@ bool CLR_RT_GarbageCollector::TestPointers_PopulateOld_Worker(void **ref)
314
320
#ifdef _WIN64
315
321
CLR_Debug::Printf (" Some data points into a free list: 0x%016" PRIxPTR " \r\n " , (uintptr_t )dst);
316
322
#else
317
- CLR_Debug::Printf (" Some data points into a free list: %08x \r\n " , dst);
323
+ CLR_Debug::Printf (" Some data points into a free list: 0x%08 " PRIxPTR " \r\n " , ( uintptr_t ) dst);
318
324
#endif
319
325
320
326
// need to free the memory allocated for the record
@@ -382,7 +388,7 @@ void CLR_RT_GarbageCollector::TestPointers_Remap()
382
388
#ifdef _WIN64
383
389
CLR_Debug::Printf (" Duplicate base NEW: 0x%016" PRIxPTR " \r\n " , (uintptr_t )ref);
384
390
#else
385
- CLR_Debug::Printf (" Duplicate base NEW: %08x \r\n " , ref);
391
+ CLR_Debug::Printf (" Duplicate base NEW: 0x%08 " PRIxPTR " \r\n " , ( uintptr_t ) ref);
386
392
#endif
387
393
NANOCLR_DEBUG_STOP ();
388
394
}
@@ -417,7 +423,10 @@ bool CLR_RT_GarbageCollector::TestPointers_PopulateNew_Worker(void **ref)
417
423
(uintptr_t )ptr->newPtr ,
418
424
(uintptr_t )dst);
419
425
#else
420
- CLR_Debug::Printf (" Bad pointer: %08x %08x\r\n " , ptr->newPtr , dst);
426
+ CLR_Debug::Printf (
427
+ " Bad pointer: 0x%08" PRIxPTR " 0x%08" PRIxPTR " \r\n " ,
428
+ (uintptr_t )ptr->newPtr ,
429
+ (uintptr_t )dst);
421
430
#endif
422
431
NANOCLR_DEBUG_STOP ();
423
432
}
@@ -429,7 +438,10 @@ bool CLR_RT_GarbageCollector::TestPointers_PopulateNew_Worker(void **ref)
429
438
(uintptr_t )ptr->data ,
430
439
(uintptr_t )*dst);
431
440
#else
432
- CLR_Debug::Printf (" Bad data: %08x %08x\r\n " , ptr->data , *dst);
441
+ CLR_Debug::Printf (
442
+ " Bad data: 0x%08" PRIxPTR " 0x%08" PRIxPTR " \r\n " ,
443
+ (uintptr_t )ptr->data ,
444
+ (uintptr_t )*dst);
433
445
#endif
434
446
435
447
NANOCLR_DEBUG_STOP ();
@@ -440,7 +452,7 @@ bool CLR_RT_GarbageCollector::TestPointers_PopulateNew_Worker(void **ref)
440
452
#ifdef _WIN64
441
453
CLR_Debug::Printf (" Some data points into a free list: 0x%016" PRIxPTR " \r\n " , (uintptr_t )dst);
442
454
#else
443
- CLR_Debug::Printf (" Some data points into a free list: %08x \r\n " , dst);
455
+ CLR_Debug::Printf (" Some data points into a free list: 0x%08 " PRIxPTR " \r\n " , ( uintptr_t ) dst);
444
456
#endif
445
457
446
458
NANOCLR_DEBUG_STOP ();
@@ -453,7 +465,7 @@ bool CLR_RT_GarbageCollector::TestPointers_PopulateNew_Worker(void **ref)
453
465
#ifdef _WIN64
454
466
CLR_Debug::Printf (" Bad base: 0x%016" PRIxPTR " \r\n " , (uintptr_t )ref);
455
467
#else
456
- CLR_Debug::Printf (" Bad base: 0x%08x \r\n " , ref);
468
+ CLR_Debug::Printf (" Bad base: 0x0x%08 " PRIxPTR " \r\n " , ( uintptr_t ) ref);
457
469
#endif
458
470
459
471
NANOCLR_DEBUG_STOP ();
0 commit comments