From: Eugene Syromyatnikov Date: Wed, 19 Oct 2016 18:12:51 +0000 (+0300) Subject: clone: use kernel_ulong_t as type of flags parameter of unshare call X-Git-Tag: v4.15~188 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0cffca31df8cf6fe85361f3db43c4e62e9ada134;p=strace clone: use kernel_ulong_t as type of flags parameter of unshare call Kernel declares flags parameter as long and looks like x32 and n32 implement no compat for this call. * clone.c (SYS_FUNC(unshare)): Use getarg_ull and printflags64 for obtaining and parsing flags parameter. --- diff --git a/clone.c b/clone.c index c2832c19..0f2d32c2 100644 --- a/clone.c +++ b/clone.c @@ -153,7 +153,7 @@ SYS_FUNC(setns) SYS_FUNC(unshare) { - printflags_long(unshare_flags, tcp->u_arg[0], "CLONE_???"); + printflags64(unshare_flags, getarg_ull(tcp, 0), "CLONE_???"); return RVAL_DECODED; }