Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/netbsd32 be more verbose about failed vmcmds.
details: https://anonhg.NetBSD.org/src/rev/3d7809eb1095
branches: trunk
changeset: 504520:3d7809eb1095
user: mrg <mrg%NetBSD.org@localhost>
date: Sun Mar 04 13:42:32 2001 +0000
description:
be more verbose about failed vmcmds.
diffstat:
sys/compat/netbsd32/netbsd32_execve.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diffs (28 lines):
diff -r 998df7cab7c0 -r 3d7809eb1095 sys/compat/netbsd32/netbsd32_execve.c
--- a/sys/compat/netbsd32/netbsd32_execve.c Sun Mar 04 13:41:00 2001 +0000
+++ b/sys/compat/netbsd32/netbsd32_execve.c Sun Mar 04 13:42:32 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: netbsd32_execve.c,v 1.1 2001/02/08 13:19:33 mrg Exp $ */
+/* $NetBSD: netbsd32_execve.c,v 1.2 2001/03/04 13:42:32 mrg Exp $ */
/*
* Copyright (c) 1998, 2001 Matthew R. Green
@@ -279,12 +279,12 @@
error = (*vcp->ev_proc)(p, vcp);
#ifdef DEBUG
if (error) {
- if (i > 0)
- printf("vmcmd[%d] = %#lx/%#lx @ %#lx\n", i-1,
- vcp[-1].ev_addr, vcp[-1].ev_len,
- vcp[-1].ev_offset);
- printf("vmcmd[%d] = %#lx/%#lx @ %#lx\n", i,
- vcp->ev_addr, vcp->ev_len, vcp->ev_offset);
+ int j;
+
+ for (j = 0; j <= i; j++)
+ printf("vmcmd[%d] = %#lx/%#lx @ %#lx\n", j,
+ vcp[j-i].ev_addr, vcp[j-i].ev_len,
+ vcp[j-i].ev_offset);
}
#endif
if (vcp->ev_flags & VMCMD_BASE)
Home |
Main Index |
Thread Index |
Old Index