[disk/pnp] Cosmetic changes to debug messages
authorShao Miller <Shao.Miller@yrdsb.edu.on.ca>
Mon, 3 Jan 2011 08:16:12 +0000 (03:16 -0500)
committerShao Miller <Shao.Miller@yrdsb.edu.on.ca>
Mon, 3 Jan 2011 08:16:12 +0000 (03:16 -0500)
src/winvblock/disk/pnp.c

index 5586562..2cfa2ec 100644 (file)
@@ -271,7 +271,7 @@ static NTSTATUS STDCALL disk_pnp__simple_(
 
     switch (code) {
         case IRP_MN_DEVICE_USAGE_NOTIFICATION:
-          DBG("disk_pnp: IRP_MN_DEVICE_USAGE_NOTIFICATION\n");
+          DBG("IRP_MN_DEVICE_USAGE_NOTIFICATION\n");
           if (io_stack_loc->Parameters.UsageNotification.InPath) {
               disk->SpecialFileCount++;
             } else {
@@ -282,47 +282,47 @@ static NTSTATUS STDCALL disk_pnp__simple_(
           break;
 
         case IRP_MN_QUERY_PNP_DEVICE_STATE:
-          DBG("disk_pnp: IRP_MN_QUERY_PNP_DEVICE_STATE\n");
+          DBG("IRP_MN_QUERY_PNP_DEVICE_STATE\n");
           irp->IoStatus.Information = 0;
           status = STATUS_SUCCESS;
           break;
 
         case IRP_MN_START_DEVICE:
-          DBG("disk_pnp: IRP_MN_START_DEVICE\n");
+          DBG("IRP_MN_START_DEVICE\n");
           dev->OldState = dev->State;
           dev->State = WvDevStateStarted;
           status = STATUS_SUCCESS;
           break;
 
         case IRP_MN_QUERY_STOP_DEVICE:
-          DBG("disk_pnp: IRP_MN_QUERY_STOP_DEVICE\n");
+          DBG("IRP_MN_QUERY_STOP_DEVICE\n");
           dev->OldState = dev->State;
           dev->State = WvDevStateStopPending;
           status = STATUS_SUCCESS;
           break;
 
         case IRP_MN_CANCEL_STOP_DEVICE:
-          DBG("disk_pnp: IRP_MN_CANCEL_STOP_DEVICE\n");
+          DBG("IRP_MN_CANCEL_STOP_DEVICE\n");
           dev->State = dev->OldState;
           status = STATUS_SUCCESS;
           break;
 
         case IRP_MN_STOP_DEVICE:
-          DBG("disk_pnp: IRP_MN_STOP_DEVICE\n");
+          DBG("IRP_MN_STOP_DEVICE\n");
           dev->OldState = dev->State;
           dev->State = WvDevStateStopped;
           status = STATUS_SUCCESS;
           break;
 
         case IRP_MN_QUERY_REMOVE_DEVICE:
-          DBG("disk_pnp: IRP_MN_QUERY_REMOVE_DEVICE\n");
+          DBG("IRP_MN_QUERY_REMOVE_DEVICE\n");
           dev->OldState = dev->State;
           dev->State = WvDevStateRemovePending;
           status = STATUS_SUCCESS;
           break;
 
         case IRP_MN_REMOVE_DEVICE:
-          DBG("disk_pnp: IRP_MN_REMOVE_DEVICE\n");
+          DBG("IRP_MN_REMOVE_DEVICE\n");
           dev->OldState = dev->State;
           dev->State = WvDevStateNotStarted;
           if (disk->Unmount) {
@@ -336,20 +336,20 @@ static NTSTATUS STDCALL disk_pnp__simple_(
           break;
 
         case IRP_MN_CANCEL_REMOVE_DEVICE:
-          DBG("disk_pnp: IRP_MN_CANCEL_REMOVE_DEVICE\n");
+          DBG("IRP_MN_CANCEL_REMOVE_DEVICE\n");
           dev->State = dev->OldState;
           status = STATUS_SUCCESS;
           break;
 
         case IRP_MN_SURPRISE_REMOVAL:
-          DBG("disk_pnp: IRP_MN_SURPRISE_REMOVAL\n");
+          DBG("IRP_MN_SURPRISE_REMOVAL\n");
           dev->OldState = dev->State;
           dev->State = WvDevStateSurpriseRemovePending;
           status = STATUS_SUCCESS;
           break;
 
         default:
-          DBG("disk_pnp: Unhandled IRP_MN_*: %d\n", code);
+          DBG("Unhandled IRP_MN_*: %d\n", code);
           status = irp->IoStatus.Status;
       }
 
@@ -366,23 +366,23 @@ NTSTATUS STDCALL disk_pnp__dispatch(
   ) {
     switch (code) {
         case IRP_MN_QUERY_ID:
-          DBG("disk_pnp: IIRP_MN_QUERY_ID\n");
+          DBG("IRP_MN_QUERY_ID\n");
           return WvDevPnpQueryId(dev, irp);
 
         case IRP_MN_QUERY_DEVICE_TEXT:
-          DBG("disk_pnp: IRP_MN_QUERY_DEVICE_TEXT\n");
+          DBG("IRP_MN_QUERY_DEVICE_TEXT\n");
           return disk_pnp__query_dev_text_(dev, irp);
 
         case IRP_MN_QUERY_DEVICE_RELATIONS:
-          DBG("disk_pnp: IRP_MN_QUERY_DEVICE_RELATIONS\n");
+          DBG("IRP_MN_QUERY_DEVICE_RELATIONS\n");
           return disk_pnp__query_dev_relations_(dev, irp);
 
         case IRP_MN_QUERY_BUS_INFORMATION:
-          DBG("disk_pnp: IRP_MN_QUERY_BUS_INFORMATION\n");
+          DBG("IRP_MN_QUERY_BUS_INFORMATION\n");
           return disk_pnp__query_bus_info_(dev, irp);
 
         case IRP_MN_QUERY_CAPABILITIES:
-          DBG("disk_pnp: IRP_MN_QUERY_CAPABILITIES\n");
+          DBG("IRP_MN_QUERY_CAPABILITIES\n");
           return disk_pnp__query_capabilities_(dev, irp);
 
         default: