[REACTOS] Fix MSVC printf format warnings
[reactos.git] / drivers / storage / class / disk_new / pnp.c
index 27c0c92..ecccc51 100644 (file)
@@ -363,7 +363,7 @@ Return Value:
     status = ClassReadDriveCapacity(Fdo);
 
     //
-    // If the read capcity failed then just return, unless this is a
+    // If the read capacity failed then just return, unless this is a
     // removable disk where a device object partition needs to be created.
     //
 
@@ -438,7 +438,7 @@ Return Value:
         fdoExtension->DMByteSkew = fdoExtension->DMSkew * bytesPerSector;
 
         //
-        // Save away the infomation that we need, since this deviceExtension will soon be
+        // Save away the information that we need, since this deviceExtension will soon be
         // blown away.
         //
 
@@ -495,7 +495,7 @@ Return Value:
     DiskCreateSymbolicLinks(Fdo);
 
     //
-    // Determine the type of disk and enable failure preiction in the hardware
+    // Determine the type of disk and enable failure prediction in the hardware
     // and enable failure prediction polling.
     //
 
@@ -724,13 +724,13 @@ Return Value:
         if((Pdo->Characteristics & FILE_REMOVABLE_MEDIA) == 0) {
 
             if (diskData->PartitionStyle == PARTITION_STYLE_MBR) {
-                sprintf(string, "S%08lx_O%I64lx_L%I64lx",
+                sprintf(string, "S%08lx_O%I64x_L%I64x",
                         diskData->Mbr.Signature,
-                        commonExtension->StartingOffset,
-                        commonExtension->PartitionLength);
+                        commonExtension->StartingOffset.QuadPart,
+                        commonExtension->PartitionLength.QuadPart);
             } else {
                 sprintf(string,
-                        "S%08lx-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02xS_O%I64lx_L%I64lx",
+                        "S%08lx-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02xS_O%I64x_L%I64x",
                         diskData->Efi.DiskId.Data1,
                         diskData->Efi.DiskId.Data2,
                         diskData->Efi.DiskId.Data3,
@@ -742,8 +742,8 @@ Return Value:
                         diskData->Efi.DiskId.Data4[5],
                         diskData->Efi.DiskId.Data4[6],
                         diskData->Efi.DiskId.Data4[7],
-                        commonExtension->StartingOffset,
-                        commonExtension->PartitionLength);
+                        commonExtension->StartingOffset.QuadPart,
+                        commonExtension->PartitionLength.QuadPart);
             }
         } else {
             sprintf(string, "RM");
@@ -1314,7 +1314,7 @@ Return Value:
 
     if (NT_SUCCESS(status))
     {
-        if (cacheInfo.WriteCacheEnabled == TRUE)
+        if (cacheInfo.WriteCacheEnabled != FALSE)
         {
             if (writeCacheOverride == DiskWriteCacheDisable)
             {