Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Improve diagnostics message on entry point too low/...
details: https://anonhg.NetBSD.org/src/rev/33a1c5780cdf
branches: trunk
changeset: 769646:33a1c5780cdf
user: reinoud <reinoud%NetBSD.org@localhost>
date: Fri Sep 16 21:02:28 2011 +0000
description:
Improve diagnostics message on entry point too low/high checking
diffstat:
sys/kern/kern_exec.c | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
diffs (42 lines):
diff -r b503e1d414b3 -r 33a1c5780cdf sys/kern/kern_exec.c
--- a/sys/kern/kern_exec.c Fri Sep 16 20:38:12 2011 +0000
+++ b/sys/kern/kern_exec.c Fri Sep 16 21:02:28 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_exec.c,v 1.328 2011/08/27 18:11:48 reinoud Exp $ */
+/* $NetBSD: kern_exec.c,v 1.329 2011/09/16 21:02:28 reinoud Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -59,7 +59,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_exec.c,v 1.328 2011/08/27 18:11:48 reinoud Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_exec.c,v 1.329 2011/09/16 21:02:28 reinoud Exp $");
#include "opt_exec.h"
#include "opt_ktrace.h"
@@ -374,8 +374,9 @@
/* Seems ok: check that entry point is not too high */
if (epp->ep_entry > epp->ep_vm_maxaddr) {
#ifdef DIAGNOSTIC
- printf("%s: rejecting due to "
- "too high entry address\n", __func__);
+ printf("%s: rejecting %p due to "
+ "too high entry address\n",
+ __func__, (void *) epp->ep_entry);
#endif
error = ENOEXEC;
break;
@@ -383,8 +384,9 @@
/* Seems ok: check that entry point is not too low */
if (epp->ep_entry < epp->ep_vm_minaddr) {
#ifdef DIAGNOSTIC
- printf("%s: rejecting due to "
- "too low entry address\n", __func__);
+ printf("%s: rejecting %p due to "
+ "too low entry address\n",
+ __func__, (void *) epp->ep_entry);
#endif
error = ENOEXEC;
break;
Home |
Main Index |
Thread Index |
Old Index