From: Florian Krohm Date: Thu, 13 Aug 2015 12:27:48 +0000 (+0000) Subject: Write a SysRes value as an unsigned number. X-Git-Tag: svn/VALGRIND_3_11_0~126 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=673a4411f0b55df0e39bc149ac076a794c7e3e39;p=thirdparty%2Fvalgrind.git Write a SysRes value as an unsigned number. Previously, whether the bitpattern was interpreted as a signed or unsigned value depended on the platform. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15531 --- diff --git a/coregrind/m_syswrap/syswrap-main.c b/coregrind/m_syswrap/syswrap-main.c index c94c07dc8b..8fb8ce65fa 100644 --- a/coregrind/m_syswrap/syswrap-main.c +++ b/coregrind/m_syswrap/syswrap-main.c @@ -2612,12 +2612,12 @@ VG_(fixup_guest_state_after_syscall_interrupted)( ThreadId tid, if (VG_(clo_trace_signals)) VG_(message)( Vg_DebugMsg, "interrupted_syscall: tid=%u, ip=%#lx, " - "restart=%s, sres.isErr=%s, sres.val=%lld\n", + "restart=%s, sres.isErr=%s, sres.val=%lu\n", tid, ip, restart ? "True" : "False", sr_isError(sres) ? "True" : "False", - (Long)(sr_isError(sres) ? sr_Err(sres) : sr_Res(sres)) ); + sr_isError(sres) ? sr_Err(sres) : sr_Res(sres)); vg_assert(VG_(is_valid_tid)(tid)); vg_assert(tid >= 1 && tid < VG_N_THREADS);