Module Name:    src
Committed By:   hannken
Date:           Sun Jul 21 15:38:06 UTC 2019

Modified Files:
        src/external/cddl/osnet/dist/lib/libdtrace/common: dt_open.c

Log Message:
Always use "netbsd" as kernel name, dt_module_update() already takes
care to load data from the booted kernel image.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 \
    src/external/cddl/osnet/dist/lib/libdtrace/common/dt_open.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/cddl/osnet/dist/lib/libdtrace/common/dt_open.c
diff -u src/external/cddl/osnet/dist/lib/libdtrace/common/dt_open.c:1.14 src/external/cddl/osnet/dist/lib/libdtrace/common/dt_open.c:1.15
--- src/external/cddl/osnet/dist/lib/libdtrace/common/dt_open.c:1.14	Sun Jul 21 15:37:27 2019
+++ src/external/cddl/osnet/dist/lib/libdtrace/common/dt_open.c	Sun Jul 21 15:38:06 2019
@@ -1367,9 +1367,13 @@ alloc:
 # endif
 	{
 	const char *p;
+# ifdef __FreeBSD__
 	char kernname[512];
 
 	p = dt_bootfile(kernname, sizeof(kernname));
+# else
+	p = "netbsd";
+# endif
 
 	/*
 	 * Format the global variables based on the kernel module name.

Reply via email to