Module Name: src Committed By: palle Date: Thu Mar 14 19:51:50 UTC 2019
Modified Files: src/sys/kern: kern_scdebug.c Log Message: syscall debug - fix build when SYSCALL_DEBUG option is present in kernel config file To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys/kern/kern_scdebug.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/kern/kern_scdebug.c diff -u src/sys/kern/kern_scdebug.c:1.1 src/sys/kern/kern_scdebug.c:1.2 --- src/sys/kern/kern_scdebug.c:1.1 Fri Sep 14 01:55:19 2018 +++ src/sys/kern/kern_scdebug.c Thu Mar 14 19:51:49 2019 @@ -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 @@ KERNHIST_DEFINE(scdebughist); #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