Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/cddl/osnet/dev/sdt Make assertion of linker_file #i...
details: https://anonhg.NetBSD.org/src/rev/87670e2548f0
branches: trunk
changeset: 816078:87670e2548f0
user: mlelstv <mlelstv%NetBSD.org@localhost>
date: Thu Jun 16 06:08:06 2016 +0000
description:
Make assertion of linker_file #ifdef __FreeBSD__. Fixes DIAGNOSTIC build.
diffstat:
external/cddl/osnet/dev/sdt/sdt.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (22 lines):
diff -r 78f7c17b6f51 -r 87670e2548f0 external/cddl/osnet/dev/sdt/sdt.c
--- a/external/cddl/osnet/dev/sdt/sdt.c Thu Jun 16 04:03:37 2016 +0000
+++ b/external/cddl/osnet/dev/sdt/sdt.c Thu Jun 16 06:08:06 2016 +0000
@@ -39,7 +39,7 @@
* unloaded; in particular, probes may not span multiple kernel modules.
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sdt.c,v 1.15 2016/02/06 18:19:59 joerg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sdt.c,v 1.16 2016/06/16 06:08:06 mlelstv Exp $");
#include <sys/cdefs.h>
#include <sys/param.h>
@@ -257,7 +257,9 @@
{
struct sdt_probe *probe = parg;
+#ifdef __FreeBSD__
SDT_KASSERT(probe->sdtp_lf->nenabled > 0, ("no probes enabled"));
+#endif
#ifdef SDT_DEBUG
printf("sdt: %s\n", __func__);
Home |
Main Index |
Thread Index |
Old Index