[PATCH] D31977: Use 0-padding for i386 and arm print format specifiers
Francis Ricci via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 12 07:38:09 PDT 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL300065: Use 0-padding for i386 and arm print format specifiers (authored by fjricci).
Changed prior to commit:
https://reviews.llvm.org/D31977?vs=94965&id=94967#toc
Repository:
rL LLVM
https://reviews.llvm.org/D31977
Files:
compiler-rt/trunk/test/sanitizer_common/print_address.h
Index: compiler-rt/trunk/test/sanitizer_common/print_address.h
===================================================================
--- compiler-rt/trunk/test/sanitizer_common/print_address.h
+++ compiler-rt/trunk/test/sanitizer_common/print_address.h
@@ -12,7 +12,7 @@
// 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31977.94967.patch
Type: text/x-patch
Size: 619 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170412/3df3afd6/attachment.bin>
More information about the llvm-commits
mailing list