Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

Commit

Permalink
fallocate.c: make use of RVAL_DECODED
Browse files Browse the repository at this point in the history
* fallocate.c (sys_fallocate): Update for RVAL_DECODED.
  • Loading branch information
ldv-alt committed Jul 20, 2015
1 parent a3a7ffe commit 5dcf3b1
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions fallocate.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,21 @@

SYS_FUNC(fallocate)
{
if (entering(tcp)) {
int argn;
int argn;

/* fd */
printfd(tcp, tcp->u_arg[0]);
tprints(", ");
/* fd */
printfd(tcp, tcp->u_arg[0]);
tprints(", ");

/* mode */
printflags(falloc_flags, tcp->u_arg[1], "FALLOC_FL_???");
tprints(", ");
/* mode */
printflags(falloc_flags, tcp->u_arg[1], "FALLOC_FL_???");
tprints(", ");

/* offset */
argn = printllval(tcp, "%llu, ", 2);
/* offset */
argn = printllval(tcp, "%llu, ", 2);

/* len */
printllval(tcp, "%llu", argn);
}
return 0;
/* len */
printllval(tcp, "%llu", argn);

return RVAL_DECODED;
}

0 comments on commit 5dcf3b1

Please sign in to comment.