mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Some SEGVGUARD messages are debugging-only. Only output them in verbose
mode.
This commit is contained in:
parent
5abb3d76c5
commit
657ec202e7
1 changed files with 8 additions and 4 deletions
|
|
@ -354,8 +354,10 @@ pax_segvguard_add(struct thread *td, struct vnode *vn, sbintime_t sbt)
|
|||
|
||||
error = VOP_GETATTR(vn, &vap, td->td_ucred);
|
||||
if (error != 0) {
|
||||
pax_log_segvguard(td->td_proc, PAX_LOG_DEFAULT,
|
||||
"%s:%d stat error. Bailing.", __func__, __LINE__);
|
||||
if (bootverbose)
|
||||
pax_log_segvguard(td->td_proc, PAX_LOG_DEFAULT,
|
||||
"%s:%d stat error. Bailing.", __func__,
|
||||
__LINE__);
|
||||
|
||||
return (NULL);
|
||||
}
|
||||
|
|
@ -394,8 +396,10 @@ pax_segvguard_lookup(struct thread *td, struct vnode *vn)
|
|||
|
||||
error = VOP_GETATTR(vn, &vap, td->td_ucred);
|
||||
if (error != 0) {
|
||||
pax_log_segvguard(td->td_proc, PAX_LOG_DEFAULT,
|
||||
"%s:%d stat error. Bailing.", __func__, __LINE__);
|
||||
if (bootverbose)
|
||||
pax_log_segvguard(td->td_proc, PAX_LOG_DEFAULT,
|
||||
"%s:%d stat error. Bailing.", __func__,
|
||||
__LINE__);
|
||||
|
||||
return (NULL);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue