From 0eb763c77f7f33694656984fcdac53bf52c3dacb Mon Sep 17 00:00:00 2001 From: Alexandru Dutu Date: Wed, 18 Apr 2018 17:01:08 -0400 Subject: [PATCH] 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 --- src/sim/syscall_emul.hh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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 -- 2.30.2