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 <Brandon.Potter@amd.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
This commit is contained in:
Alexandru Dutu
2018-04-18 17:01:08 -04:00
committed by Brandon Potter
parent 87ea5ee3a3
commit 0eb763c77f

View File

@@ -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