[NTOS:MM][NTOS:SE] Mute some noisy stubs
authorOleg Dubinskiy <oleg.dubinskij2013@yandex.ua>
Mon, 5 Apr 2021 18:49:50 +0000 (21:49 +0300)
committerGeorge Bișoc <fraizeraust99@gmail.com>
Wed, 7 Apr 2021 11:16:03 +0000 (13:16 +0200)
Mute debug prints of MmDoesFileHaveUserWritableReferences and SeAuditingFileEventsWithContext stubs.
These stubs are very noisy and create a lot of spam in the log when using Microsoft NTFS driver in ReactOS (with some other improvements applied).
Implementing those functions isn't badly required for the proper work of this driver, so better way for now is just mute these stubs a bit.
After my changes, they will be displayed only once, and the log will be more clear, so it will seem to be enough to understand that the driver calls these routines.
CORE-17409

ntoskrnl/mm/ARM3/section.c
ntoskrnl/se/audit.c

index 1301267..fa4bb52 100644 (file)
@@ -3341,7 +3341,7 @@ ULONG
 NTAPI
 MmDoesFileHaveUserWritableReferences(IN PSECTION_OBJECT_POINTERS SectionPointer)
 {
-    UNIMPLEMENTED;
+    UNIMPLEMENTED_ONCE;
     return 0;
 }
 
index e4722f3..9cc7c51 100644 (file)
@@ -731,7 +731,7 @@ SeAuditingFileEventsWithContext(IN BOOLEAN AccessGranted,
                                 IN PSECURITY_DESCRIPTOR SecurityDescriptor,
                                 IN PSECURITY_SUBJECT_CONTEXT SubjectSecurityContext OPTIONAL)
 {
-    UNIMPLEMENTED;
+    UNIMPLEMENTED_ONCE;
     return FALSE;
 }