svn commit: r321978 - stable/11/sys/kern
Konstantin Belousov
kib at FreeBSD.org
Thu Aug 3 07:30:36 UTC 2017
Author: kib
Date: Thu Aug 3 07:30:35 2017
New Revision: 321978
URL: https://svnweb.freebsd.org/changeset/base/321978
Log:
MFC r321627:
Make it possible to request nosys logging to console.
Modified:
stable/11/sys/kern/kern_sig.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/kern/kern_sig.c
==============================================================================
--- stable/11/sys/kern/kern_sig.c Thu Aug 3 07:28:54 2017 (r321977)
+++ stable/11/sys/kern/kern_sig.c Thu Aug 3 07:30:35 2017 (r321978)
@@ -3595,9 +3595,14 @@ nosys(td, args)
PROC_LOCK(p);
tdsignal(td, SIGSYS);
PROC_UNLOCK(p);
- if (kern_lognosys)
+ if (kern_lognosys == 1 || kern_lognosys == 3) {
uprintf("pid %d comm %s: nosys %d\n", p->p_pid, p->p_comm,
td->td_sa.code);
+ }
+ if (kern_lognosys == 2 || kern_lognosys == 3) {
+ printf("pid %d comm %s: nosys %d\n", p->p_pid, p->p_comm,
+ td->td_sa.code);
+ }
return (ENOSYS);
}
More information about the svn-src-all
mailing list