Module Name: src Committed By: christos Date: Thu Jul 22 03:19:02 UTC 2010
Modified Files: src/sys/compat/ibcs2: ibcs2_exec_coff.c Log Message: Add more debugging printfs To generate a diff of this commit: cvs rdiff -u -r1.24 -r1.25 src/sys/compat/ibcs2/ibcs2_exec_coff.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/compat/ibcs2/ibcs2_exec_coff.c diff -u src/sys/compat/ibcs2/ibcs2_exec_coff.c:1.24 src/sys/compat/ibcs2/ibcs2_exec_coff.c:1.25 --- src/sys/compat/ibcs2/ibcs2_exec_coff.c:1.24 Mon Jun 29 01:08:16 2009 +++ src/sys/compat/ibcs2/ibcs2_exec_coff.c Wed Jul 21 23:19:02 2010 @@ -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; }