From: Florian Krohm Date: Sat, 8 Aug 2015 21:08:31 +0000 (+0000) Subject: Fix two more format inconsistencies found on s390. The one X-Git-Tag: svn/VALGRIND_3_11_0~149 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ea69c8ce342a843689b2d002984e33906954f91;p=thirdparty%2Fvalgrind.git Fix two more format inconsistencies found on s390. The one in m_stacktrace.c also existed for other architectures. Fixed as well. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15508 --- diff --git a/coregrind/m_machine.c b/coregrind/m_machine.c index 1c1d4b5a36..7e9942f0b9 100644 --- a/coregrind/m_machine.c +++ b/coregrind/m_machine.c @@ -1411,7 +1411,7 @@ Bool VG_(machine_get_hwcaps)( void ) HChar *p = fac_str; p += VG_(sprintf)(p, "machine %4d ", model); for (i=0; i < sizeof fac_hwcaps / sizeof fac_hwcaps[0]; ++i) { - p += VG_(sprintf)(p, " %s %1d", fac_hwcaps[i].name, + p += VG_(sprintf)(p, " %s %1u", fac_hwcaps[i].name, fac_hwcaps[i].installed); } *p++ = '\0'; diff --git a/coregrind/m_stacktrace.c b/coregrind/m_stacktrace.c index 1471a0b84e..726ac61ed8 100644 --- a/coregrind/m_stacktrace.c +++ b/coregrind/m_stacktrace.c @@ -730,7 +730,7 @@ UInt VG_(get_StackTrace_wrk) ( ThreadId tid_if_known, fp_max -= sizeof(Addr); if (debug) - VG_(printf)("max_n_ips=%d fp_min=0x%lx fp_max_orig=0x%lx, " + VG_(printf)("max_n_ips=%u fp_min=0x%lx fp_max_orig=0x%lx, " "fp_max=0x%lx ip=0x%lx fp=0x%lx\n", max_n_ips, fp_min, fp_max_orig, fp_max, ip, fp); @@ -995,7 +995,7 @@ UInt VG_(get_StackTrace_wrk) ( ThreadId tid_if_known, fp_max -= sizeof(Addr); if (debug) - VG_(printf)("\nmax_n_ips=%d fp_min=0x%lx fp_max_orig=0x%lx, " + VG_(printf)("\nmax_n_ips=%u fp_min=0x%lx fp_max_orig=0x%lx, " "fp_max=0x%lx r15=0x%lx r13=0x%lx\n", max_n_ips, fp_min, fp_max_orig, fp_max, uregs.r15, uregs.r13); @@ -1139,7 +1139,7 @@ UInt VG_(get_StackTrace_wrk) ( ThreadId tid_if_known, fp_max -= sizeof(Addr); if (debug) - VG_(printf)("\nmax_n_ips=%d fp_min=0x%lx fp_max_orig=0x%lx, " + VG_(printf)("\nmax_n_ips=%u fp_min=0x%lx fp_max_orig=0x%lx, " "fp_max=0x%lx PC=0x%lx SP=0x%lx\n", max_n_ips, fp_min, fp_max_orig, fp_max, uregs.pc, uregs.sp); @@ -1228,7 +1228,7 @@ UInt VG_(get_StackTrace_wrk) ( ThreadId tid_if_known, fp_max -= sizeof(Addr); if (debug) - VG_(printf)("max_n_ips=%d fp_min=0x%lx fp_max_orig=0x%lx, " + VG_(printf)("max_n_ips=%u fp_min=0x%lx fp_max_orig=0x%lx, " "fp_max=0x%lx IA=0x%lx SP=0x%lx FP=0x%lx\n", max_n_ips, fp_min, fp_max_orig, fp_max, uregs.ia, uregs.sp,uregs.fp); @@ -1321,7 +1321,7 @@ UInt VG_(get_StackTrace_wrk) ( ThreadId tid_if_known, fp_max -= sizeof(Addr); if (debug) - VG_(printf)("max_n_ips=%d fp_min=0x%lx fp_max_orig=0x%lx, " + VG_(printf)("max_n_ips=%u fp_min=0x%lx fp_max_orig=0x%lx, " "fp_max=0x%lx pc=0x%lx sp=0x%lx fp=0x%lx\n", max_n_ips, fp_min, fp_max_orig, fp_max, uregs.pc, uregs.sp, uregs.fp); @@ -1467,7 +1467,7 @@ UInt VG_(get_StackTrace_wrk) ( ThreadId tid_if_known, fp_max -= sizeof(Addr); if (debug) - VG_(printf)("max_n_ips=%d fp_min=0x%lx fp_max_orig=0x%lx, " + VG_(printf)("max_n_ips=%u fp_min=0x%lx fp_max_orig=0x%lx, " "fp_max=0x%lx pc=0x%lx sp=0x%lx fp=0x%lx\n", max_n_ips, fp_min, fp_max_orig, fp_max, uregs.pc, uregs.sp, uregs.fp);