Module Name: src Committed By: ozaki-r Date: Mon Oct 23 06:52:17 UTC 2017
Modified Files: src/lib/librumphijack: hijack.c Log Message: Provide better debug messages for ioctl To generate a diff of this commit: cvs rdiff -u -r1.123 -r1.124 src/lib/librumphijack/hijack.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/librumphijack/hijack.c diff -u src/lib/librumphijack/hijack.c:1.123 src/lib/librumphijack/hijack.c:1.124 --- src/lib/librumphijack/hijack.c:1.123 Tue Jun 6 19:48:42 2017 +++ src/lib/librumphijack/hijack.c Mon Oct 23 06:52:17 2017 @@ -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 @@ ioctl(int fd, unsigned long cmd, ...) 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 @@ ioctl(int fd, unsigned long cmd, ...) va_start(ap, cmd); rv = op_ioctl(fd, cmd, va_arg(ap, void *)); va_end(ap); + DPRINTF(("ioctl <- %d\n", rv)); return rv; }