diff options
author | Edward Tomasz Napierala <trasz@FreeBSD.org> | 2020-06-12 14:37:50 +0000 |
---|---|---|
committer | Edward Tomasz Napierala <trasz@FreeBSD.org> | 2020-06-12 14:37:50 +0000 |
commit | 462171d9aa00f863df65ac49836c9f3cc7e55a9c (patch) | |
tree | 9012106e2f5fe45422a4c9b769ac0944f5c11220 /sys/compat/linux/linux_util.c | |
parent | 599dadca55fb6f7caacad1868a7c63de6e2cb354 (diff) |
Add compat.linux.debug sysctl, to make it possible to silence down
the debug messages. While here, clean up some variable naming.
Reviewed by: bcr (manpages), emaste
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D25230
Notes
Notes:
svn path=/head/; revision=362104
Diffstat (limited to 'sys/compat/linux/linux_util.c')
-rw-r--r-- | sys/compat/linux/linux_util.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/compat/linux/linux_util.c b/sys/compat/linux/linux_util.c index 54769451d1e5..59fc844e1cbe 100644 --- a/sys/compat/linux/linux_util.c +++ b/sys/compat/linux/linux_util.c @@ -91,6 +91,9 @@ linux_msg(const struct thread *td, const char *fmt, ...) va_list ap; struct proc *p; + if (linux_debug == 0) + return; + p = td->td_proc; printf("linux: pid %d (%s): ", (int)p->p_pid, p->p_comm); va_start(ap, fmt); |