Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Don't printf a userspace pointer; print the copied-...
details: https://anonhg.NetBSD.org/src/rev/3ad814953e03
branches: trunk
changeset: 754499:3ad814953e03
user: dholland <dholland%NetBSD.org@localhost>
date: Sun May 02 06:35:21 2010 +0000
description:
Don't printf a userspace pointer; print the copied-in kernel version
instead, now that it's readily available. Fixes PR 43217.
diffstat:
sys/kern/exec_elf.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r e990db87dc2a -r 3ad814953e03 sys/kern/exec_elf.c
--- a/sys/kern/exec_elf.c Sun May 02 06:31:48 2010 +0000
+++ b/sys/kern/exec_elf.c Sun May 02 06:35:21 2010 +0000
@@ -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,
Home |
Main Index |
Thread Index |
Old Index