[PATCH 1/2] readahead: Fix print format for the "count" argument
Eugene Syromyatnikov
evgsyr at gmail.com
Wed Aug 31 23:42:48 UTC 2016
It is size_t (according to documentation and syscalls.h), so "%lu" should
be used instead of "%ld".
* readahead.c (SYS_FUNC(readahead)): fix conversion specifier for the
"count" argument.
---
readahead.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/readahead.c b/readahead.c
index 3f8e4ce..f2b9c80 100644
--- a/readahead.c
+++ b/readahead.c
@@ -6,7 +6,7 @@ SYS_FUNC(readahead)
printfd(tcp, tcp->u_arg[0]);
argn = printllval(tcp, ", %lld", 1);
- tprintf(", %ld", tcp->u_arg[argn]);
+ tprintf(", %lu", tcp->u_arg[argn]);
return RVAL_DECODED;
}
--
1.7.10.4
More information about the Strace-devel
mailing list