5af0e0dab8
Since types of these arguments are off_t and kernel actually expects signed values in order to fail when negative values are provided, lets display these values as signed. * fallocate.c (SYS_FUNC(fallocate)): Change conversion specifier for printing "offset" and "len" syscall arguments from %llu to %lld.
29 lines
413 B
C
29 lines
413 B
C
#include "defs.h"
|
|
|
|
#ifdef HAVE_LINUX_FALLOC_H
|
|
# include <linux/falloc.h>
|
|
#endif
|
|
|
|
#include "xlat/falloc_flags.h"
|
|
|
|
SYS_FUNC(fallocate)
|
|
{
|
|
int argn;
|
|
|
|
/* fd */
|
|
printfd(tcp, tcp->u_arg[0]);
|
|
tprints(", ");
|
|
|
|
/* mode */
|
|
printflags(falloc_flags, tcp->u_arg[1], "FALLOC_FL_???");
|
|
tprints(", ");
|
|
|
|
/* offset */
|
|
argn = printllval(tcp, "%lld, ", 2);
|
|
|
|
/* len */
|
|
printllval(tcp, "%lld", argn);
|
|
|
|
return RVAL_DECODED;
|
|
}
|