From f518c756417f70866af52869a44fd3814c083d93 Mon Sep 17 00:00:00 2001 From: Francis Ricci Date: Wed, 12 Apr 2017 14:25:28 +0000 Subject: [PATCH] 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 llvm-svn: 300065 --- compiler-rt/test/sanitizer_common/print_address.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/test/sanitizer_common/print_address.h b/compiler-rt/test/sanitizer_common/print_address.h index 63d9a93..db2e834 100644 --- a/compiler-rt/test/sanitizer_common/print_address.h +++ b/compiler-rt/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 -- 2.7.4