[NTOSKRNL]
authorGabriel Ilardi <gabrielilardi@hotmail.it>
Thu, 8 Jul 2010 19:28:25 +0000 (19:28 +0000)
committerGabriel Ilardi <gabrielilardi@hotmail.it>
Thu, 8 Jul 2010 19:28:25 +0000 (19:28 +0000)
- Warn only once about FsRtlPrivateLock and FsRtlFastUnlockSingle being stubplemented.

svn path=/trunk/; revision=47972

reactos/ntoskrnl/fsrtl/filelock.c

index a7bcdd4..18ea87a 100644 (file)
@@ -79,7 +79,8 @@ FsRtlPrivateLock(IN PFILE_LOCK FileLock,
 {
     NTSTATUS Status;
 
-    DPRINT1("FsRtlPrivateLock() is stubplemented!\n");
+    static BOOLEAN Warn;
+    if (!Warn++) DPRINT1("FsRtlPrivateLock() is stubplemented!\n");
 
     /* Initialize the lock, if necessary */
     if (!FileLock->LockInformation)
@@ -177,7 +178,8 @@ FsRtlFastUnlockSingle(IN PFILE_LOCK FileLock,
                       IN PVOID Context OPTIONAL,
                       IN BOOLEAN AlreadySynchronized)
 {
-    DPRINT1("FsRtlFastUnlockSingle() is stubplemented!\n");
+    static BOOLEAN Warn;
+    if (!Warn++) DPRINT1("FsRtlFastUnlockSingle() is stubplemented!\n");
 
     return STATUS_SUCCESS;
 }