sim-se: use DPRINTF_SYSCALL for ioctl/wait4
authorAlexandru Dutu <alexandru.dutu@amd.com>
Wed, 18 Apr 2018 21:01:08 +0000 (17:01 -0400)
committerBrandon Potter <Brandon.Potter@amd.com>
Tue, 30 Apr 2019 04:52:08 +0000 (04:52 +0000)
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>
src/sim/syscall_emul.hh

index 892d9d729dc0799407d65e20138bd03a5800c1a2..79960278055726b554063757600e98ee7e10c8ee 100644 (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