From: Eugene Syromyatnikov Date: Mon, 29 Aug 2016 20:59:01 +0000 (+0300) Subject: futex: fix formatting of unknown command argument X-Git-Tag: v4.14~151 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ebeae24de441c6448ff903d5201f6c80732eae2b;p=strace futex: fix formatting of unknown command argument Use alternate form for printing hexadecimal numbers to avoid confusion. Use printaddr to print uaddr as the latter is interpreted as a pointer in all currently supported futex operations. * futex.c (SYS_FUNC(futex)): Fix formatting of unknown command argument. --- diff --git a/futex.c b/futex.c index 4cd52b56..1418c89b 100644 --- a/futex.c +++ b/futex.c @@ -107,7 +107,10 @@ SYS_FUNC(futex) case FUTEX_TRYLOCK_PI: break; default: - tprintf(", %lx, %lx, %x", timeout, uaddr2, val3); + tprintf(", %#lx", timeout); + tprints(", "); + printaddr(uaddr2); + tprintf(", %#x", val3); break; }