diff options
author | Alexandru Dutu <alexandru.dutu@amd.com> | 2018-04-18 17:01:08 -0400 |
---|---|---|
committer | Brandon Potter <Brandon.Potter@amd.com> | 2019-04-30 04:52:08 +0000 |
commit | 0eb763c77f7f33694656984fcdac53bf52c3dacb (patch) | |
tree | 968d463c53d95e8a1d28b613020bf904437eadb7 | |
parent | 87ea5ee3a3d4c04503159b0f864de94be03d4751 (diff) | |
download | gem5-0eb763c77f7f33694656984fcdac53bf52c3dacb.tar.xz |
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>
-rw-r--r-- | src/sim/syscall_emul.hh | 7 |
1 files 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 |