From 5af0e0dab8427e8db4fcf3ca3554aab0eaadf24c Mon Sep 17 00:00:00 2001 From: Eugene Syromyatnikov Date: Thu, 22 Sep 2016 00:21:14 +0300 Subject: [PATCH] fallocate: change print format of offset and len arguments to signed 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. --- fallocate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fallocate.c b/fallocate.c index 0b1cfec9..b707279c 100644 --- a/fallocate.c +++ b/fallocate.c @@ -19,10 +19,10 @@ SYS_FUNC(fallocate) tprints(", "); /* offset */ - argn = printllval(tcp, "%llu, ", 2); + argn = printllval(tcp, "%lld, ", 2); /* len */ - printllval(tcp, "%llu", argn); + printllval(tcp, "%lld", argn); return RVAL_DECODED; } -- 2.40.0