Author: fireball
Date: Fri May 4 17:40:14 2007
New Revision: 26635
URL:
http://svn.reactos.org/svn/reactos?rev=26635&view=rev
Log:
- Fixes and changes to NPFS debug printing system, so it actually works now.
Modified:
trunk/reactos/drivers/filesystems/npfs_new/create.c
trunk/reactos/drivers/filesystems/npfs_new/finfo.c
trunk/reactos/drivers/filesystems/npfs_new/fsctrl.c
trunk/reactos/drivers/filesystems/npfs_new/npfs.c
trunk/reactos/drivers/filesystems/npfs_new/npfs.h
trunk/reactos/drivers/filesystems/npfs_new/rw.c
trunk/reactos/drivers/filesystems/npfs_new/volume.c
Modified: trunk/reactos/drivers/filesystems/npfs_new/create.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/npfs_n…
==============================================================================
--- trunk/reactos/drivers/filesystems/npfs_new/create.c (original)
+++ trunk/reactos/drivers/filesystems/npfs_new/create.c Fri May 4 17:40:14 2007
@@ -18,7 +18,7 @@
NTSTATUS NTAPI
NpfsCreate(PDEVICE_OBJECT DeviceObject, PIRP Irp)
{
- NpfsDbgPrint(NPFS_DEBUG_HIGHEST, "IRP_MJ_CREATE\n");
+ NpfsDbgPrint(NPFS_DL_API_TRACE, "IRP_MJ_CREATE\n");
IoCompleteRequest(Irp, IO_NO_INCREMENT);
return STATUS_SUCCESS;
@@ -27,7 +27,7 @@
NTSTATUS NTAPI
NpfsCreateNamedPipe(PDEVICE_OBJECT DeviceObject, PIRP Irp)
{
- NpfsDbgPrint(NPFS_DEBUG_HIGHEST, "IRP_MJ_CREATE Named Pipe\n");
+ NpfsDbgPrint(NPFS_DL_API_TRACE, "IRP_MJ_CREATE Named Pipe\n");
IoCompleteRequest(Irp, IO_NO_INCREMENT);
return STATUS_SUCCESS;
@@ -36,7 +36,7 @@
NTSTATUS NTAPI
NpfsCleanup(PDEVICE_OBJECT DeviceObject, PIRP Irp)
{
- NpfsDbgPrint(NPFS_DEBUG_HIGHEST, "Cleanup\n");
+ NpfsDbgPrint(NPFS_DL_API_TRACE, "Cleanup\n");
IoCompleteRequest(Irp, IO_NO_INCREMENT);
return STATUS_SUCCESS;
@@ -45,7 +45,7 @@
NTSTATUS NTAPI
NpfsClose(PDEVICE_OBJECT DeviceObject, PIRP Irp)
{
- NpfsDbgPrint(NPFS_DEBUG_HIGHEST, "IRP_MJ_CLOSE\n");
+ NpfsDbgPrint(NPFS_DL_API_TRACE, "IRP_MJ_CLOSE\n");
IoCompleteRequest(Irp, IO_NO_INCREMENT);
return STATUS_SUCCESS;
Modified: trunk/reactos/drivers/filesystems/npfs_new/finfo.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/npfs_n…
==============================================================================
--- trunk/reactos/drivers/filesystems/npfs_new/finfo.c (original)
+++ trunk/reactos/drivers/filesystems/npfs_new/finfo.c Fri May 4 17:40:14 2007
@@ -20,7 +20,7 @@
{
FsRtlEnterFileSystem();
- NpfsDbgPrint(NPFS_DEBUG_HIGHEST, "NpfsQueryInformation()\n");
+ NpfsDbgPrint(NPFS_DL_API_TRACE, "NpfsQueryInformation()\n");
/* TODO: Implement */
IoCompleteRequest(Irp, IO_NO_INCREMENT);
@@ -35,7 +35,7 @@
{
FsRtlEnterFileSystem();
- NpfsDbgPrint(NPFS_DEBUG_HIGHEST, "NpfsSetInformation()\n");
+ NpfsDbgPrint(NPFS_DL_API_TRACE, "NpfsSetInformation()\n");
/* TODO: Implement */
IoCompleteRequest(Irp, IO_NO_INCREMENT);
Modified: trunk/reactos/drivers/filesystems/npfs_new/fsctrl.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/npfs_n…
==============================================================================
--- trunk/reactos/drivers/filesystems/npfs_new/fsctrl.c (original)
+++ trunk/reactos/drivers/filesystems/npfs_new/fsctrl.c Fri May 4 17:40:14 2007
@@ -20,7 +20,7 @@
{
FsRtlEnterFileSystem();
- NpfsDbgPrint(NPFS_DEBUG_HIGHEST, "NpfsDirectoryControl()\n");
+ NpfsDbgPrint(NPFS_DL_API_TRACE, "NpfsDirectoryControl()\n");
/* TODO: Implement */
IoCompleteRequest(Irp, IO_NO_INCREMENT);
@@ -35,7 +35,7 @@
{
FsRtlEnterFileSystem();
- NpfsDbgPrint(NPFS_DEBUG_HIGHEST, "NpfsFileSystemControl()\n");
+ NpfsDbgPrint(NPFS_DL_API_TRACE, "NpfsFileSystemControl()\n");
/* TODO: Implement */
IoCompleteRequest(Irp, IO_NO_INCREMENT);
Modified: trunk/reactos/drivers/filesystems/npfs_new/npfs.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/npfs_n…
==============================================================================
--- trunk/reactos/drivers/filesystems/npfs_new/npfs.c (original)
+++ trunk/reactos/drivers/filesystems/npfs_new/npfs.c Fri May 4 17:40:14 2007
@@ -13,7 +13,7 @@
//#define NDEBUG
#include <debug.h>
-ULONG NpfsDebugLevel = NPFS_DEBUG_HIGHEST;
+ULONG NpfsDebugLevel = NPFS_DL_API_TRACE;
/* FUNCTIONS *****************************************************************/
@@ -86,7 +86,7 @@
va_list args;
char str[300];
- if ((NpfsDebugLevel & Level) == 0)
+ if (!(NpfsDebugLevel & Level))
return;
va_start(args, fmt);
Modified: trunk/reactos/drivers/filesystems/npfs_new/npfs.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/npfs_n…
==============================================================================
--- trunk/reactos/drivers/filesystems/npfs_new/npfs.h (original)
+++ trunk/reactos/drivers/filesystems/npfs_new/npfs.h Fri May 4 17:40:14 2007
@@ -8,7 +8,8 @@
#include <stdio.h>
/* Debug Levels */
-#define NPFS_DEBUG_HIGHEST 0x0
+#define NPFS_DL_NONE 0x00000000
+#define NPFS_DL_API_TRACE 0x00000001
typedef struct _NPFS_DEVICE_EXTENSION
{
Modified: trunk/reactos/drivers/filesystems/npfs_new/rw.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/npfs_n…
==============================================================================
--- trunk/reactos/drivers/filesystems/npfs_new/rw.c (original)
+++ trunk/reactos/drivers/filesystems/npfs_new/rw.c Fri May 4 17:40:14 2007
@@ -48,7 +48,7 @@
{
FsRtlEnterFileSystem();
- NpfsDbgPrint(NPFS_DEBUG_HIGHEST, "NpfsRead()\n");
+ NpfsDbgPrint(NPFS_DL_API_TRACE, "NpfsRead()\n");
/* TODO: Implement */
IoCompleteRequest(Irp, IO_NO_INCREMENT);
@@ -63,7 +63,7 @@
{
FsRtlEnterFileSystem();
- NpfsDbgPrint(NPFS_DEBUG_HIGHEST, "NpfsWrite()\n");
+ NpfsDbgPrint(NPFS_DL_API_TRACE, "NpfsWrite()\n");
/* TODO: Implement */
IoCompleteRequest(Irp, IO_NO_INCREMENT);
@@ -78,7 +78,7 @@
{
FsRtlEnterFileSystem();
- NpfsDbgPrint(NPFS_DEBUG_HIGHEST, "NpfsFlushBuffers()\n");
+ NpfsDbgPrint(NPFS_DL_API_TRACE, "NpfsFlushBuffers()\n");
/* TODO: Implement */
IoCompleteRequest(Irp, IO_NO_INCREMENT);
Modified: trunk/reactos/drivers/filesystems/npfs_new/volume.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/npfs_n…
==============================================================================
--- trunk/reactos/drivers/filesystems/npfs_new/volume.c (original)
+++ trunk/reactos/drivers/filesystems/npfs_new/volume.c Fri May 4 17:40:14 2007
@@ -20,7 +20,7 @@
{
FsRtlEnterFileSystem();
- NpfsDbgPrint(NPFS_DEBUG_HIGHEST, "NpfsQueryVolumeInformation()\n");
+ NpfsDbgPrint(NPFS_DL_API_TRACE, "NpfsQueryVolumeInformation()\n");
/* TODO: Implement */
IoCompleteRequest(Irp, IO_NO_INCREMENT);