summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Gallop <russell.gallop@sony.com>2020-09-11 16:45:25 +0100
committerRussell Gallop <russell.gallop@sony.com>2021-01-21 16:55:58 +0000
commit18b989790c8359f80aa63944478cf8f72e2bc696 (patch)
treedc7f7d7ef02487a851763f78db7dab6b592edcae
parent0b38e7ae500b9ad01f3b654d6b122f90f012888c (diff)
downloadllvm-18b989790c8359f80aa63944478cf8f72e2bc696.tar.gz
Fixup format specifiers for Windows
Will need a more cross platform approach
-rw-r--r--compiler-rt/lib/scudo/standalone/wrappers_c.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/scudo/standalone/wrappers_c.inc b/compiler-rt/lib/scudo/standalone/wrappers_c.inc
index 9d640038d8e2..74130964c462 100644
--- a/compiler-rt/lib/scudo/standalone/wrappers_c.inc
+++ b/compiler-rt/lib/scudo/standalone/wrappers_c.inc
@@ -226,7 +226,7 @@ INTERFACE WEAK int SCUDO_PREFIX(malloc_info)(UNUSED int options, FILE *stream) {
fputs("<malloc version=\"scudo-1\">\n", stream);
for (scudo::uptr i = 0; i != max_size; ++i)
if (sizes[i])
- fprintf(stream, "<alloc size=\"%lu\" count=\"%lu\"/>\n", i, sizes[i]);
+ fprintf(stream, "<alloc size=\"%llu\" count=\"%llu\"/>\n", i, sizes[i]);
fputs("</malloc>\n", stream);
SCUDO_PREFIX(free)(sizes);
return 0;