Source-Changes-HG archive

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

[src/trunk]: src/sys/compat/netbsd32 Also print mmap return value and error c...



details:   https://anonhg.NetBSD.org/src/rev/8ebb8abab463
branches:  trunk
changeset: 979997:8ebb8abab463
user:      simonb <simonb%NetBSD.org@localhost>
date:      Tue Jan 19 01:47:58 2021 +0000

description:
Also print mmap return value and error code #ifdef DEBUG_MMAP.

diffstat:

 sys/compat/netbsd32/netbsd32_vm.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r a730b3a0b625 -r 8ebb8abab463 sys/compat/netbsd32/netbsd32_vm.c
--- a/sys/compat/netbsd32/netbsd32_vm.c Tue Jan 19 00:40:17 2021 +0000
+++ b/sys/compat/netbsd32/netbsd32_vm.c Tue Jan 19 01:47:58 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: netbsd32_vm.c,v 1.2 2020/01/07 07:26:21 mrg Exp $      */
+/*     $NetBSD: netbsd32_vm.c,v 1.3 2021/01/19 01:47:58 simonb Exp $   */
 
 /*
  * Copyright (c) 1998, 2001, 2008, 2018 Matthew R. Green
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_vm.c,v 1.2 2020/01/07 07:26:21 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_vm.c,v 1.3 2021/01/19 01:47:58 simonb Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -86,6 +86,9 @@
 #endif
 
        error = sys_mmap(l, &ua, retval);
+#ifdef DEBUG_MMAP
+       printf("mmap error = %d  *retval = %#"PRIxREGISTER"\n", error, *retval);
+#endif
        if (error == 0 && (u_long)*retval > (u_long)UINT_MAX) {
                const char *name = curlwp->l_name;
 



Home | Main Index | Thread Index | Old Index