diff options
author | Colin Percival <cperciva@FreeBSD.org> | 2023-06-04 22:59:10 +0000 |
---|---|---|
committer | Colin Percival <cperciva@FreeBSD.org> | 2023-06-05 05:49:38 +0000 |
commit | 1e4b7ab136b434dcb296833e509f87c95ac868bc (patch) | |
tree | 92b2b13428d8b7b124e9eef0911e7e6d71338783 | |
parent | 37e3f5b23b0720223186f5a00108fdb8d3e88150 (diff) | |
download | src-1e4b7ab136b434dcb296833e509f87c95ac868bc.tar.gz src-1e4b7ab136b434dcb296833e509f87c95ac868bc.zip |
tslog.h: Wrap in #ifdef _KERNEL
This is not intended to be used from outside of the kernel; in
particular, the boot loader has its own version of tslog.
-rw-r--r-- | sys/sys/tslog.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/sys/tslog.h b/sys/sys/tslog.h index af3c0931cac8..dcbfd266c5c2 100644 --- a/sys/sys/tslog.h +++ b/sys/sys/tslog.h @@ -29,6 +29,7 @@ #ifndef _TSLOG_H_ #define _TSLOG_H_ +#ifdef _KERNEL #ifdef TSLOG #include <sys/_types.h> #include <sys/pcpu.h> @@ -66,4 +67,5 @@ void tslog_user(pid_t, pid_t, const char *, const char *); #define TSRAW_USER(a, b, c, d) /* Timestamp logging disabled */ #endif +#endif /* _KERNEL */ #endif /* _TSLOG_H_ */ |