Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/cddl/osnet/dist/lib/libdtrace/common Always use "ne...
details: https://anonhg.NetBSD.org/src/rev/a10a468f6271
branches: trunk
changeset: 962433:a10a468f6271
user: hannken <hannken%NetBSD.org@localhost>
date: Sun Jul 21 15:38:06 2019 +0000
description:
Always use "netbsd" as kernel name, dt_module_update() already takes
care to load data from the booted kernel image.
diffstat:
external/cddl/osnet/dist/lib/libdtrace/common/dt_open.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diffs (17 lines):
diff -r 2c3a02a0de4a -r a10a468f6271 external/cddl/osnet/dist/lib/libdtrace/common/dt_open.c
--- a/external/cddl/osnet/dist/lib/libdtrace/common/dt_open.c Sun Jul 21 15:37:27 2019 +0000
+++ b/external/cddl/osnet/dist/lib/libdtrace/common/dt_open.c Sun Jul 21 15:38:06 2019 +0000
@@ -1367,9 +1367,13 @@
# 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.
Home |
Main Index |
Thread Index |
Old Index