Source-Changes-HG archive

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

[src/trunk]: src/sys/kern syscall debug - fix build when SYSCALL_DEBUG option...



details:   https://anonhg.NetBSD.org/src/rev/28e45ee8c3d4
branches:  trunk
changeset: 997592:28e45ee8c3d4
user:      palle <palle%NetBSD.org@localhost>
date:      Thu Mar 14 19:51:49 2019 +0000

description:
syscall debug - fix build when SYSCALL_DEBUG option is present in kernel config file

diffstat:

 sys/kern/kern_scdebug.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (31 lines):

diff -r ed7749e03959 -r 28e45ee8c3d4 sys/kern/kern_scdebug.c
--- a/sys/kern/kern_scdebug.c   Thu Mar 14 19:26:44 2019 +0000
+++ b/sys/kern/kern_scdebug.c   Thu Mar 14 19:51:49 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_scdebug.c,v 1.1 2018/09/14 01:55:19 mrg Exp $     */
+/*     $NetBSD: kern_scdebug.c,v 1.2 2019/03/14 19:51:49 palle Exp $   */
 
 /*
  * Copyright (c) 2015 Matthew R. Green
@@ -59,7 +59,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_scdebug.c,v 1.1 2018/09/14 01:55:19 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_scdebug.c,v 1.2 2019/03/14 19:51:49 palle Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_syscall_debug.h"
@@ -112,9 +112,9 @@
 #define SCDEBUG_KERNHIST_CALLED(a)             KERNHIST_CALLED(a)
 #define SCDEBUG_KERNHIST_LOG(a,b,c,d,e,f)      KERNHIST_LOG(a,b,c,d,e,f)
 #else
-#define SCDEBUG_KERNHIST_FUNC(a)               /* nothing */
-#define SCDEBUG_KERNHIST_CALLED(a)             /* nothing */
-#define SCDEBUG_KERNHIST_LOG(a,b,c,d,e,f)      /* nothing */
+#define SCDEBUG_KERNHIST_FUNC(a)               {} /* nothing */
+#define SCDEBUG_KERNHIST_CALLED(a)             {} /* nothing */
+#define SCDEBUG_KERNHIST_LOG(a,b,c,d,e,f)      {} /* nothing */
 /* The non-kernhist support version can elide all this code easily. */
 #undef SCDEBUG_KERNHIST
 #define        SCDEBUG_KERNHIST 0



Home | Main Index | Thread Index | Old Index