Module Name: src
Committed By: dholland
Date: Sun May 2 06:35:21 UTC 2010
Modified Files:
src/sys/kern: exec_elf.c
Log Message:
Don't printf a userspace pointer; print the copied-in kernel version
instead, now that it's readily available. Fixes PR 43217.
To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/sys/kern/exec_elf.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/exec_elf.c
diff -u src/sys/kern/exec_elf.c:1.20 src/sys/kern/exec_elf.c:1.21
--- src/sys/kern/exec_elf.c:1.20 Fri Apr 2 14:11:18 2010
+++ src/sys/kern/exec_elf.c Sun May 2 06:35:21 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: exec_elf.c,v 1.20 2010/04/02 14:11:18 christos Exp $ */
+/* $NetBSD: exec_elf.c,v 1.21 2010/05/02 06:35:21 dholland Exp $ */
/*-
* Copyright (c) 1994, 2000, 2005 The NetBSD Foundation, Inc.
@@ -57,7 +57,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: exec_elf.c,v 1.20 2010/04/02 14:11:18 christos Exp $");
+__KERNEL_RCSID(1, "$NetBSD: exec_elf.c,v 1.21 2010/05/02 06:35:21 dholland Exp $");
#ifdef _KERNEL_OPT
#include "opt_pax.h"
@@ -882,7 +882,7 @@
#ifdef DIAGNOSTIC
printf("%s: bad tag %d: "
"[%d %d, %d %d, %*.*s %*.*s]\n",
- epp->ep_name,
+ epp->ep_kname,
np->n_type,
np->n_namesz, ELF_NOTE_PAX_NAMESZ,
np->n_descsz, ELF_NOTE_PAX_DESCSZ,