[compiler-rt] r300065 - Use 0-padding for i386 and arm print format specifiers
Francis Ricci via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 12 07:25:28 PDT 2017
Author: fjricci
Date: Wed Apr 12 09:25:28 2017
New Revision: 300065
URL: http://llvm.org/viewvc/llvm-project?rev=300065&view=rev
Log:
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
Modified:
compiler-rt/trunk/test/sanitizer_common/print_address.h
Modified: compiler-rt/trunk/test/sanitizer_common/print_address.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/sanitizer_common/print_address.h?rev=300065&r1=300064&r2=300065&view=diff
==============================================================================
--- compiler-rt/trunk/test/sanitizer_common/print_address.h (original)
+++ compiler-rt/trunk/test/sanitizer_common/print_address.h Wed Apr 12 09:25:28 2017
@@ -12,7 +12,7 @@ void print_address(const char *str, int
// 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
More information about the llvm-commits
mailing list