Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/ibcs2 Add more debugging printfs
details: https://anonhg.NetBSD.org/src/rev/f3af391924bf
branches: trunk
changeset: 756541:f3af391924bf
user: christos <christos%NetBSD.org@localhost>
date: Thu Jul 22 03:19:02 2010 +0000
description:
Add more debugging printfs
diffstat:
sys/compat/ibcs2/ibcs2_exec_coff.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diffs (35 lines):
diff -r 023e43df4965 -r f3af391924bf sys/compat/ibcs2/ibcs2_exec_coff.c
--- a/sys/compat/ibcs2/ibcs2_exec_coff.c Thu Jul 22 03:18:30 2010 +0000
+++ b/sys/compat/ibcs2/ibcs2_exec_coff.c Thu Jul 22 03:19:02 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ibcs2_exec_coff.c,v 1.24 2009/06/29 05:08:16 dholland Exp $ */
+/* $NetBSD: ibcs2_exec_coff.c,v 1.25 2010/07/22 03:19:02 christos Exp $ */
/*
* Copyright (c) 1994, 1995, 1998 Scott Bartram
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ibcs2_exec_coff.c,v 1.24 2009/06/29 05:08:16 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ibcs2_exec_coff.c,v 1.25 2010/07/22 03:19:02 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -120,11 +120,15 @@
error = exec_ibcs2_coff_prep_zmagic(l, epp, fp, ap);
break;
default:
+ DPRINTF(("ibcs2: bad coff magic %x\n", ap->a_magic));
return ENOEXEC;
}
- if (error)
+ if (error) {
kill_vmcmds(&epp->ep_vmcmds);
+ DPRINTF(("ibcs2: error loading magic %x (%d)\n", ap->a_magic,
+ error));
+ }
return error;
}
Home |
Main Index |
Thread Index |
Old Index