[Kernel] More adjustment to XNotification spam filter

This commit is contained in:
Cancerous 2019-12-05 09:37:13 -05:00 committed by Gliniak
parent c9b8a5e98c
commit 9646582105
1 changed files with 2 additions and 2 deletions

View File

@ -35,8 +35,8 @@ void XNotifyListener::EnqueueNotification(XNotificationID id, uint32_t data) {
// TODO(Gliniak): (confirm) mask 0x01 means accept all // TODO(Gliniak): (confirm) mask 0x01 means accept all
XELOGI("XnotifyListener::EnqueueNotification( Mask: %.8X ID: %.8X Drop?:(%X) )", XELOGI("XnotifyListener::EnqueueNotification( Mask: %.8X ID: %.8X Drop?:(%X) )",
mask_, id, mask_, id,
((mask_ & ((id >> 25) & 0x3F)) == 0 && (mask_ != 0x01) && ((id >> 5) != 0))); ((mask_ & ((id >> 25) & 0x3F)) == 0 && (mask_ != 0x01) && ((id >> 8) != 0)));
if ((mask_ & ((id >> 25) & 0x3F)) == 0 && (mask_ != 0x01) && ((id >> 5) != 0)) { if ((mask_ & ((id >> 25) & 0x3F)) == 0 && (mask_ != 0x01) && ((id >> 8) != 0)) {
return; return;
} }