Module Name: src
Committed By: reinoud
Date: Fri Sep 16 21:02:29 UTC 2011
Modified Files:
src/sys/kern: kern_exec.c
Log Message:
Improve diagnostics message on entry point too low/high checking
To generate a diff of this commit:
cvs rdiff -u -r1.328 -r1.329 src/sys/kern/kern_exec.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/kern/kern_exec.c
diff -u src/sys/kern/kern_exec.c:1.328 src/sys/kern/kern_exec.c:1.329
--- src/sys/kern/kern_exec.c:1.328 Sat Aug 27 18:11:48 2011
+++ src/sys/kern/kern_exec.c Fri Sep 16 21:02:28 2011
@@ -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;