From: Dmitry V. Levin Date: Mon, 29 Dec 2014 03:15:42 +0000 (+0000) Subject: sparc: fix fxstat decoding X-Git-Tag: v4.10~265 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e00a9571d43d25531c4291be85376d273e22ec98;p=strace sparc: fix fxstat decoding * file.c [SPARC || SPARC64] (sys_fxstat): Print file descriptor using printfd. --- diff --git a/file.c b/file.c index 51c30784..69e72b35 100644 --- a/file.c +++ b/file.c @@ -887,9 +887,11 @@ sys_xstat(struct tcb *tcp) int sys_fxstat(struct tcb *tcp) { - if (entering(tcp)) - tprintf("%ld, %ld, ", tcp->u_arg[0], tcp->u_arg[1]); - else { + if (entering(tcp)) { + tprintf("%ld, ", tcp->u_arg[0]); + printfd(tcp, tcp->u_arg[1]); + tprints(", "); + } else { printstat(tcp, tcp->u_arg[2]); } return 0;