Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/librumphijack Provide better debug messages for ioctl



details:   https://anonhg.NetBSD.org/src/rev/d5b36216f327
branches:  trunk
changeset: 827299:d5b36216f327
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Mon Oct 23 06:52:17 2017 +0000

description:
Provide better debug messages for ioctl

diffstat:

 lib/librumphijack/hijack.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (35 lines):

diff -r 17b8ba1e8fc1 -r d5b36216f327 lib/librumphijack/hijack.c
--- a/lib/librumphijack/hijack.c        Mon Oct 23 06:43:00 2017 +0000
+++ b/lib/librumphijack/hijack.c        Mon Oct 23 06:52:17 2017 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: hijack.c,v 1.123 2017/06/06 19:48:42 christos Exp $   */
+/*      $NetBSD: hijack.c,v 1.124 2017/10/23 06:52:17 ozaki-r Exp $    */
 
 /*-
  * Copyright (c) 2011 Antti Kantee.  All Rights Reserved.
@@ -34,7 +34,7 @@
 #include <rump/rumpuser_port.h>
 
 #if !defined(lint)
-__RCSID("$NetBSD: hijack.c,v 1.123 2017/06/06 19:48:42 christos Exp $");
+__RCSID("$NetBSD: hijack.c,v 1.124 2017/10/23 06:52:17 ozaki-r Exp $");
 #endif
 
 #include <sys/param.h>
@@ -1406,7 +1406,7 @@
        va_list ap;
        int rv;
 
-       DPRINTF(("ioctl -> %d\n", fd));
+       DPRINTF(("ioctl -> %d (%s)\n", fd, whichfd(fd)));
        if (fd_isrump(fd)) {
                fd = fd_host2rump(fd);
                op_ioctl = GETSYSCALL(rump, IOCTL);
@@ -1417,6 +1417,7 @@
        va_start(ap, cmd);
        rv = op_ioctl(fd, cmd, va_arg(ap, void *));
        va_end(ap);
+       DPRINTF(("ioctl <- %d\n", rv));
        return rv;
 }
 



Home | Main Index | Thread Index | Old Index