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 aa8bc86..8c2c05c 100644
--- a/cacheflush.c
+++ b/cacheflush.c
@@ -81,9 +81,9 @@
/* 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;
}