diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2011-04-12 20:06:50 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2011-04-12 20:06:50 +0000 |
commit | e9e7ffa10d1af2f0b11528c1be16ab406c02f136 (patch) | |
tree | 01563714acfc4f546f860afab192f4b6b5c78895 /runtime | |
parent | 3eb4319313b3fb9189cd4be5b3e5375be9bdc2f9 (diff) |
Print our uint64_t with the more portable (C99 and C++0x) %PRIu64 format
specifier.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129384 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/libprofile/LineProfiling.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/runtime/libprofile/LineProfiling.c b/runtime/libprofile/LineProfiling.c index 4116ab9504..39cdc720c5 100644 --- a/runtime/libprofile/LineProfiling.c +++ b/runtime/libprofile/LineProfiling.c @@ -17,6 +17,8 @@ #include <stdio.h> #include <stdint.h> +#include "llvm/Support/DataTypes.h" + /* A file in this case is a translation unit. Each .o file built with line * profiling enabled will emit to a different file. Only one file may be * started at a time. @@ -29,7 +31,7 @@ void llvm_prof_linectr_start_file(const char *orig_filename) { void llvm_prof_linectr_emit_counter(const char *dir, const char *file, uint32_t line, uint32_t column, uint64_t *counter) { - printf("%s/%s:%u:%u %lu\n", dir, file, line, column, *counter); + printf("%s/%s:%u:%u %" PRIu64 "\n", dir, file, line, column, *counter); } void llvm_prof_linectr_end_file() { |