]> granicus.if.org Git - strace/commitdiff
cacheflush.c: make use of RVAL_DECODED
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 20 Jul 2015 18:05:21 +0000 (18:05 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 20 Jul 2015 22:03:07 +0000 (22:03 +0000)
* cacheflush.c (sys_cacheflush): Update for RVAL_DECODED.

cacheflush.c

index db7283f2d3aff55406ce3e5ed4ce4ed1f5b38e1e..e4b704c85f68a15e325325eca078847375281be6 100644 (file)
@@ -22,19 +22,18 @@ static const struct xlat cacheflush_flags[] = {
 
 SYS_FUNC(cacheflush)
 {
-       if (entering(tcp)) {
-               /* addr */
-               printaddr(tcp->u_arg[0]);
-               tprints(", ");
-               /* scope */
-               printxval(cacheflush_scope, tcp->u_arg[1], "FLUSH_SCOPE_???");
-               tprints(", ");
-               /* flags */
-               printflags(cacheflush_flags, tcp->u_arg[2], "FLUSH_CACHE_???");
-               /* len */
-               tprintf(", %lu", tcp->u_arg[3]);
-       }
-       return 0;
+       /* addr */
+       printaddr(tcp->u_arg[0]);
+       tprints(", ");
+       /* scope */
+       printxval(cacheflush_scope, tcp->u_arg[1], "FLUSH_SCOPE_???");
+       tprints(", ");
+       /* flags */
+       printflags(cacheflush_flags, tcp->u_arg[2], "FLUSH_CACHE_???");
+       /* len */
+       tprintf(", %lu", tcp->u_arg[3]);
+
+       return RVAL_DECODED;
 }
 #endif /* M68K */
 
@@ -48,15 +47,14 @@ static const struct xlat cacheflush_flags[] = {
 
 SYS_FUNC(cacheflush)
 {
-       if (entering(tcp)) {
-               /* start addr */
-               printaddr(tcp->u_arg[0]);
-               /* length */
-               tprintf(", %ld, ", tcp->u_arg[1]);
-               /* flags */
-               printxval(cacheflush_flags, tcp->u_arg[1], "?CACHE");
-       }
-       return 0;
+       /* start addr */
+       printaddr(tcp->u_arg[0]);
+       /* length */
+       tprintf(", %ld, ", tcp->u_arg[1]);
+       /* flags */
+       printxval(cacheflush_flags, tcp->u_arg[1], "?CACHE");
+
+       return RVAL_DECODED;
 }
 #endif /* BFIN */
 
@@ -79,28 +77,26 @@ static const struct xlat cacheflush_flags[] = {
 
 SYS_FUNC(cacheflush)
 {
-       if (entering(tcp)) {
-               /* addr */
-               printaddr(tcp->u_arg[0]);
-               /* len */
-               tprintf(", %lu, ", tcp->u_arg[1]);
-               /* flags */
-               printflags(cacheflush_flags, tcp->u_arg[2], "CACHEFLUSH_???");
-       }
-       return 0;
+       /* addr */
+       printaddr(tcp->u_arg[0]);
+       /* len */
+       tprintf(", %lu, ", tcp->u_arg[1]);
+       /* flags */
+       printflags(cacheflush_flags, tcp->u_arg[2], "CACHEFLUSH_???");
+
+       return RVAL_DECODED;
 }
 #endif /* SH */
 
 #ifdef NIOS2
 SYS_FUNC(cacheflush)
 {
-       if (entering(tcp)) {
-               /* addr */
-               printaddr(tcp->u_arg[0]);
-               /* len */
-               tprintf(", %lu, ", tcp->u_arg[3]);
-               /* scope and flags (cache type) are currently ignored */
-       }
-       return 0;
+       /* addr */
+       printaddr(tcp->u_arg[0]);
+       /* len */
+       tprintf(", %lu, ", tcp->u_arg[3]);
+       /* scope and flags (cache type) are currently ignored */
+
+       return RVAL_DECODED;
 }
 #endif /* NIOS2 */