From: Alexandru Dutu Date: Wed, 18 Apr 2018 21:01:08 +0000 (-0400) Subject: sim-se: use DPRINTF_SYSCALL for ioctl/wait4 X-Git-Tag: v19.0.0.0~912 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0eb763c77f7f33694656984fcdac53bf52c3dacb;p=gem5.git sim-se: use DPRINTF_SYSCALL for ioctl/wait4 Change-Id: I4fbaf1a0653f13ae964a2574cc26bbaac2dc0686 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/12124 Maintainer: Brandon Potter Tested-by: kokoro Reviewed-by: Jason Lowe-Power --- diff --git a/src/sim/syscall_emul.hh b/src/sim/syscall_emul.hh index 892d9d729..799602780 100644 --- a/src/sim/syscall_emul.hh +++ b/src/sim/syscall_emul.hh @@ -754,7 +754,7 @@ ioctlFunc(SyscallDesc *desc, int callnum, Process *p, ThreadContext *tc) int tgt_fd = p->getSyscallArg(tc, index); unsigned req = p->getSyscallArg(tc, index); - DPRINTF(SyscallVerbose, "ioctl(%d, 0x%x, ...)\n", tgt_fd, req); + DPRINTF_SYSCALL(Verbose, "ioctl(%d, 0x%x, ...)\n", tgt_fd, req); if (OS::isTtyReq(req)) return -ENOTTY; @@ -2741,10 +2741,9 @@ wait4Func(SyscallDesc *desc, int num, Process *p, ThreadContext *tc) Addr rusagePtr = p->getSyscallArg(tc, index); if (rusagePtr) - DPRINTFR(SyscallVerbose, - "%d: %s: syscall wait4: rusage pointer provided however " + DPRINTF_SYSCALL(Verbose, "wait4: rusage pointer provided %lx, however " "functionality not supported. Ignoring rusage pointer.\n", - curTick(), tc->getCpuPtr()->name()); + rusagePtr); /** * Currently, wait4 is only implemented so that it will wait for children