Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern Define LMSG outside the MAXTSIZ check so it also ex...



details:   https://anonhg.NetBSD.org/src/rev/213da0a17631
branches:  trunk
changeset: 946408:213da0a17631
user:      wiz <wiz%NetBSD.org@localhost>
date:      Wed Nov 25 21:08:59 2020 +0000

description:
Define LMSG outside the MAXTSIZ check so it also exists in non-MAXTSIZ kernels.

diffstat:

 sys/kern/kern_exec.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (32 lines):

diff -r 8ff28c93f6ba -r 213da0a17631 sys/kern/kern_exec.c
--- a/sys/kern/kern_exec.c      Wed Nov 25 21:02:35 2020 +0000
+++ b/sys/kern/kern_exec.c      Wed Nov 25 21:08:59 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_exec.c,v 1.502 2020/10/06 13:38:00 christos Exp $ */
+/*     $NetBSD: kern_exec.c,v 1.503 2020/11/25 21:08:59 wiz Exp $      */
 
 /*-
  * Copyright (c) 2008, 2019, 2020 The NetBSD Foundation, Inc.
@@ -62,7 +62,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_exec.c,v 1.502 2020/10/06 13:38:00 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_exec.c,v 1.503 2020/11/25 21:08:59 wiz Exp $");
 
 #include "opt_exec.h"
 #include "opt_execfmt.h"
@@ -498,10 +498,12 @@
                        }
 
                        /* check limits */
+#ifdef DIAGNOSTIC
+#define LMSG "%s: rejecting due to %s limit (%ju > %ju)\n"
+#endif
 #ifdef MAXTSIZ
                        if (epp->ep_tsize > MAXTSIZ) {
 #ifdef DIAGNOSTIC
-#define LMSG "%s: rejecting due to %s limit (%ju > %ju)\n"
                                printf(LMSG, __func__, "text",
                                    (uintmax_t)epp->ep_tsize,
                                    (uintmax_t)MAXTSIZ);



Home | Main Index | Thread Index | Old Index