From: Dmitry V. Levin Date: Mon, 16 May 2016 21:31:54 +0000 (+0000) Subject: bfin: fix decoding of cacheflush syscall X-Git-Tag: v4.12~153 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2eb56d1906adc08d66083f9cf3c3343195a1f486;p=strace bfin: fix decoding of cacheflush syscall * cacheflush.c (SYS_FUNC(cacheflush)): Print 2nd argument using %lu format. Print 3rd argument as flags. --- diff --git a/cacheflush.c b/cacheflush.c index aa8bc86f..8c2c05c3 100644 --- a/cacheflush.c +++ b/cacheflush.c @@ -81,9 +81,9 @@ SYS_FUNC(cacheflush) /* start addr */ printaddr(tcp->u_arg[0]); /* length */ - tprintf(", %ld, ", tcp->u_arg[1]); + tprintf(", %lu, ", tcp->u_arg[1]); /* flags */ - printxval(cacheflush_flags, tcp->u_arg[1], "?CACHE"); + printxval(cacheflush_flags, tcp->u_arg[2], "?CACHE"); return RVAL_DECODED; }