summaryrefslogtreecommitdiff
path: root/test/sanitizer_common
diff options
context:
space:
mode:
authorFrancis Ricci <francisjricci@gmail.com>2017-04-12 14:25:28 +0000
committerFrancis Ricci <francisjricci@gmail.com>2017-04-12 14:25:28 +0000
commit3cd04e32a8cd9497bd2882d7767e40ae9a936e24 (patch)
tree57258e1cb1be9adeea966020f3808cd17041d1e3 /test/sanitizer_common
parent4d122dd84d259567e6fe8e4e57291ccfc043bb7a (diff)
Use 0-padding for i386 and arm print format specifiers
Summary: This is used for the other architectures in print_address, but is missing from i386 and arm. Reviewers: m.ostapenko, spetrovic Subscribers: aemerson, rengolin, llvm-commits, kubamracek Differential Revision: https://reviews.llvm.org/D31977 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@300065 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/sanitizer_common')
-rw-r--r--test/sanitizer_common/print_address.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/sanitizer_common/print_address.h b/test/sanitizer_common/print_address.h
index 63d9a93f1..db2e8341a 100644
--- a/test/sanitizer_common/print_address.h
+++ b/test/sanitizer_common/print_address.h
@@ -12,7 +12,7 @@ void print_address(const char *str, int n, ...) {
// match to the format used in the diagnotic message.
fprintf(stderr, "0x%012lx ", (unsigned long) p);
#elif defined(__i386__) || defined(__arm__)
- fprintf(stderr, "0x%8lx ", (unsigned long) p);
+ fprintf(stderr, "0x%08lx ", (unsigned long) p);
#elif defined(__mips64)
fprintf(stderr, "0x%010lx ", (unsigned long) p);
#endif