]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassImpl.c
check the usage of %d,%x,%ld,%lx and so on in debug print statement.
[mirror_edk2.git] / MdeModulePkg / Bus / Usb / UsbMassStorageDxe / UsbMassImpl.c
index 33e1ae8f96627ecc718f3903de35f38abdd84283..724246d9f1d9c79e7aaac57febbdc8a00e66af17 100644 (file)
@@ -28,9 +28,9 @@ USB_MASS_TRANSPORT *mUsbMassTransport[] = {
   Reset the block device. ExtendedVerification is ignored for this.\r
 \r
   @param  This                   The BLOCK IO protocol\r
-  @param  ExtendedVerification   Whether to execute extended verfication.\r
+  @param  ExtendedVerification   Whether to execute extended verification.\r
 \r
-  @retval EFI_SUCCESS            The device is successfully resetted.\r
+  @retval EFI_SUCCESS            The device is successfully reseted.\r
   @retval Others                 Failed to reset the device.\r
 \r
 **/\r
@@ -273,7 +273,7 @@ UsbMassFlushBlocks (
 }\r
 \r
 /**\r
-  Retrieve the media parameters such as disk gemotric for the\r
+  Retrieve the media parameters such as disk geometric for the\r
   device's BLOCK IO protocol.\r
 \r
   @param  UsbMass                The USB mass storage device\r
@@ -348,8 +348,8 @@ UsbMassInitMedia (
   @param  Context         The passing parameter.\r
   @param  MaxLun          Get the MaxLun if is BOT dev.\r
 \r
-  @retval EFI_SUCCESS     The initilization is successful.\r
-  @retval Others          Failed to initilize dev.\r
+  @retval EFI_SUCCESS     The initialization is successful.\r
+  @retval Others          Failed to initialize dev.\r
 \r
 **/\r
 EFI_STATUS\r
@@ -711,7 +711,7 @@ USBMassDriverBindingSupported (
   INTN                          Index;\r
 \r
   //\r
-  // Check whether the controlelr support USB_IO\r
+  // Check whether the controller support USB_IO\r
   //\r
   Status = gBS->OpenProtocol (\r
                   Controller,\r
@@ -812,7 +812,7 @@ USBMassDriverBindingStart (
     }\r
   } else {\r
     //\r
-    // Open device path to perpare append Device Logic Unit node.\r
+    // Open device path to prepare append Device Logic Unit node.\r
     //\r
     Status = gBS->OpenProtocol (\r
                     Controller,\r
@@ -961,7 +961,7 @@ USBMassDriverBindingStop (
                     );\r
     if (EFI_ERROR (Status)) {\r
       AllChildrenStopped = FALSE;\r
-      DEBUG ((EFI_D_ERROR, "Fail to stop No.%d multi-lun child handle when opening blockio\n", Index));\r
+      DEBUG ((EFI_D_ERROR, "Fail to stop No.%d multi-lun child handle when opening blockio\n", (UINT32)Index));\r
       continue;\r
     }\r
 \r
@@ -988,7 +988,7 @@ USBMassDriverBindingStop (
       // Fail to uninstall blockio and devicepath protocol, so re-open usbio by child.\r
       //\r
       AllChildrenStopped = FALSE;\r
-      DEBUG ((EFI_D_ERROR, "Fail to stop No.%d multi-lun child handle when uninstalling blockio and devicepath\n", Index));\r
+      DEBUG ((EFI_D_ERROR, "Fail to stop No.%d multi-lun child handle when uninstalling blockio and devicepath\n", (UINT32)Index));\r
       \r
       gBS->OpenProtocol (\r
              Controller,\r
@@ -1013,7 +1013,7 @@ USBMassDriverBindingStop (
     return EFI_DEVICE_ERROR;\r
   }\r
   \r
-  DEBUG ((EFI_D_INFO, "Success to stop all %d multi-lun children handles\n", NumberOfChildren));\r
+  DEBUG ((EFI_D_INFO, "Success to stop all %d multi-lun children handles\n", (UINT32)NumberOfChildren));\r
   return EFI_SUCCESS;\r
 }\r
 \r