Source-Changes-D archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: src/sys/arch/mips/mips
Can we use aprint_debug instead?
On Wed, Aug 08, 2018 at 07:50:13AM +0000, Simon Burge wrote:
> Module Name: src
> Committed By: simonb
> Date: Wed Aug 8 07:50:12 UTC 2018
>
> Modified Files:
> src/sys/arch/mips/mips: cpu_exec.c
>
> Log Message:
> Make change of ABI printf()s #ifdef DEBUG_EXEC.
>
>
> To generate a diff of this commit:
> cvs rdiff -u -r1.65 -r1.66 src/sys/arch/mips/mips/cpu_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/arch/mips/mips/cpu_exec.c
> diff -u src/sys/arch/mips/mips/cpu_exec.c:1.65 src/sys/arch/mips/mips/cpu_exec.c:1.66
> --- src/sys/arch/mips/mips/cpu_exec.c:1.65 Sun Oct 16 10:57:58 2016
> +++ src/sys/arch/mips/mips/cpu_exec.c Wed Aug 8 07:50:12 2018
> @@ -1,4 +1,4 @@
> -/* $NetBSD: cpu_exec.c,v 1.65 2016/10/16 10:57:58 maxv Exp $ */
> +/* $NetBSD: cpu_exec.c,v 1.66 2018/08/08 07:50:12 simonb Exp $ */
>
> /*
> * Copyright (c) 1992, 1993
> @@ -35,7 +35,7 @@
> */
>
> #include <sys/cdefs.h>
> -__KERNEL_RCSID(0, "$NetBSD: cpu_exec.c,v 1.65 2016/10/16 10:57:58 maxv Exp $");
> +__KERNEL_RCSID(0, "$NetBSD: cpu_exec.c,v 1.66 2018/08/08 07:50:12 simonb Exp $");
>
> #include "opt_compat_netbsd.h"
> #include "opt_compat_ultrix.h"
> @@ -96,7 +96,9 @@ mips_netbsd_elf32_probe(struct lwp *l, s
> {
> struct proc * const p = l->l_proc;
> const Elf32_Ehdr * const eh = eh0;
> +#ifdef DEBUG_EXEC
> int old_abi = p->p_md.md_abi;
> +#endif /* DEBUG_EXEC */
> const char *itp_suffix = NULL;
>
> /*
> @@ -138,8 +140,10 @@ mips_netbsd_elf32_probe(struct lwp *l, s
> case EF_MIPS_ABI2:
> itp_suffix = "n32";
> p->p_md.md_abi = _MIPS_BSD_API_N32;
> +#ifdef DEBUG_EXEC
> if (old_abi != p->p_md.md_abi)
> printf("pid %d(%s): ABI set to N32 (e_flags=%#x)\n", p->p_pid, p->p_comm, eh->e_flags);
> +#endif /* DEBUG_EXEC */
> break;
> #endif
> #ifdef COMPAT_16
> @@ -150,9 +154,11 @@ mips_netbsd_elf32_probe(struct lwp *l, s
> case EF_MIPS_ABI_O32:
> itp_suffix = "o32";
> p->p_md.md_abi = _MIPS_BSD_API_O32;
> +#ifdef DEBUG_EXEC
> if (old_abi != p->p_md.md_abi)
> printf("pid %d(%s): ABI set to O32 (e_flags=%#x)\n", p->p_pid, p->p_comm, eh->e_flags);
> break;
> +#endif /* DEBUG_EXEC */
> default:
> return ENOEXEC;
> }
> @@ -208,7 +214,9 @@ mips_netbsd_elf64_probe(struct lwp *l, s
> {
> struct proc * const p = l->l_proc;
> const Elf64_Ehdr * const eh = eh0;
> +#ifdef DEBUG_EXEC
> int old_abi = p->p_md.md_abi;
> +#endif /* DEBUG_EXEC */
> const char *itp_suffix = NULL;
>
> switch (eh->e_flags & EF_MIPS_ARCH) {
> @@ -247,14 +255,18 @@ mips_netbsd_elf64_probe(struct lwp *l, s
> case 0:
> itp_suffix = "64";
> p->p_md.md_abi = _MIPS_BSD_API_N64;
> +#ifdef DEBUG_EXEC
> if (old_abi != p->p_md.md_abi)
> printf("pid %d(%s): ABI set to N64 (e_flags=%#x)\n", p->p_pid, p->p_comm, eh->e_flags);
> +#endif /* DEBUG_EXEC */
> break;
> case EF_MIPS_ABI_O64:
> itp_suffix = "o64";
> p->p_md.md_abi = _MIPS_BSD_API_O64;
> +#ifdef DEBUG_EXEC
> if (old_abi != p->p_md.md_abi)
> printf("pid %d(%s): ABI set to O64 (e_flags=%#x)\n", p->p_pid, p->p_comm, eh->e_flags);
> +#endif /* DEBUG_EXEC */
> break;
> default:
> return ENOEXEC;
>
Home |
Main Index |
Thread Index |
Old Index