[edk2-devel] [PATCH v3 05/14] FatPkg: Fix new typos reported

Michael Kubacki posted 14 patches 3 years, 1 month ago
[edk2-devel] [PATCH v3 05/14] FatPkg: Fix new typos reported
Posted by Michael Kubacki 3 years, 1 month ago
From: Michael Kubacki <michael.kubacki@microsoft.com>

The SpellCheck plugin began reporting new typos that were previously
missed. This change fixes those typos.

Cc: Ray Ni <ray.ni@intel.com>
Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
---
 FatPkg/EnhancedFatDxe/FileSpace.c |  2 +-
 FatPkg/EnhancedFatDxe/ReadWrite.c |  2 +-
 FatPkg/EnhancedFatDxe/Fat.h       |  2 +-
 FatPkg/FatPkg.ci.yaml             | 22 +++++++++++++++-----
 4 files changed, 20 insertions(+), 8 deletions(-)

diff --git a/FatPkg/EnhancedFatDxe/FileSpace.c b/FatPkg/EnhancedFatDxe/FileSpace.c
index 909d4980d21a..1220e66598ea 100644
--- a/FatPkg/EnhancedFatDxe/FileSpace.c
+++ b/FatPkg/EnhancedFatDxe/FileSpace.c
@@ -347,7 +347,7 @@ FatSizeToClusters (
 
   @param  OFile                 - The open file.
 
-  @retval EFI_SUCCESS           - Shrinked successfully.
+  @retval EFI_SUCCESS           - Shrunk successfully.
   @retval EFI_VOLUME_CORRUPTED  - There are errors in the file's clusters.
 
 **/
diff --git a/FatPkg/EnhancedFatDxe/ReadWrite.c b/FatPkg/EnhancedFatDxe/ReadWrite.c
index 8f525044d1f1..6593e3aff79c 100644
--- a/FatPkg/EnhancedFatDxe/ReadWrite.c
+++ b/FatPkg/EnhancedFatDxe/ReadWrite.c
@@ -580,7 +580,7 @@ FatWriteZeroPool (
   if (AppendedSize > FAT_MAX_ALLOCATE_SIZE) {
     //
     // If the appended size is larger, maybe we can not allocate the whole
-    // memory once. So if the growed size is larger than 10M, we just
+    // memory once. So if the grown size is larger than 10M, we just
     // allocate 10M memory (one healthy system should have 10M available
     // memory), and then write the zerobuffer to the file several times.
     //
diff --git a/FatPkg/EnhancedFatDxe/Fat.h b/FatPkg/EnhancedFatDxe/Fat.h
index 356cdbdb51af..e4aa8eac62c4 100644
--- a/FatPkg/EnhancedFatDxe/Fat.h
+++ b/FatPkg/EnhancedFatDxe/Fat.h
@@ -867,7 +867,7 @@ FatCleanupVolume (
 
   @param  OFile                 - The open file.
 
-  @retval EFI_SUCCESS           - Shrinked successfully.
+  @retval EFI_SUCCESS           - Shrunk successfully.
   @retval EFI_VOLUME_CORRUPTED  - There are errors in the file's clusters.
 
 **/
diff --git a/FatPkg/FatPkg.ci.yaml b/FatPkg/FatPkg.ci.yaml
index fe95f481b50c..247028c22921 100644
--- a/FatPkg/FatPkg.ci.yaml
+++ b/FatPkg/FatPkg.ci.yaml
@@ -51,15 +51,27 @@
     },
     "SpellCheck": {
         "ExtendWords": [
+            "bootable",
+            "caseflag",
+            "CDVOL",
+            "checklink",
+            "childlink",
+            "clustersize",
+            "controll",
+            "datacache",
+            "dircachelink",
+            "DMDEPKG",
             "ELTORITO",
+            "fatcache",
+            "fatfilesystem",
+            "fatname",
+            "FDISKed",
+            "FFFFFFFFL",
             "FHAND",
             "IFILE",
-            "OFILE",
-            "FDISKed",
             "Lfnbuffer",
-            "FFFFFFFFL",
-            "CDVOL",
-            "DMDEPKG"
+            "OFILE",
+            "zerobuffer"
         ]
     }
 }
-- 
2.28.0.windows.1



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#97386): https://edk2.groups.io/g/devel/message/97386
Mute This Topic: https://groups.io/mt/95678206/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-
Re: [edk2-devel] [PATCH v3 05/14] FatPkg: Fix new typos reported
Posted by Michael D Kinney 3 years, 1 month ago
One comment below

Mike

> -----Original Message-----
> From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Michael Kubacki
> Sent: Wednesday, December 14, 2022 2:53 PM
> To: devel@edk2.groups.io
> Cc: Ni, Ray <ray.ni@intel.com>
> Subject: [edk2-devel] [PATCH v3 05/14] FatPkg: Fix new typos reported
> 
> From: Michael Kubacki <michael.kubacki@microsoft.com>
> 
> The SpellCheck plugin began reporting new typos that were previously
> missed. This change fixes those typos.
> 
> Cc: Ray Ni <ray.ni@intel.com>
> Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
> ---
>  FatPkg/EnhancedFatDxe/FileSpace.c |  2 +-
>  FatPkg/EnhancedFatDxe/ReadWrite.c |  2 +-
>  FatPkg/EnhancedFatDxe/Fat.h       |  2 +-
>  FatPkg/FatPkg.ci.yaml             | 22 +++++++++++++++-----
>  4 files changed, 20 insertions(+), 8 deletions(-)
> 
> diff --git a/FatPkg/EnhancedFatDxe/FileSpace.c b/FatPkg/EnhancedFatDxe/FileSpace.c
> index 909d4980d21a..1220e66598ea 100644
> --- a/FatPkg/EnhancedFatDxe/FileSpace.c
> +++ b/FatPkg/EnhancedFatDxe/FileSpace.c
> @@ -347,7 +347,7 @@ FatSizeToClusters (
> 
>    @param  OFile                 - The open file.
> 
> -  @retval EFI_SUCCESS           - Shrinked successfully.
> +  @retval EFI_SUCCESS           - Shrunk successfully.
>    @retval EFI_VOLUME_CORRUPTED  - There are errors in the file's clusters.
> 
>  **/
> diff --git a/FatPkg/EnhancedFatDxe/ReadWrite.c b/FatPkg/EnhancedFatDxe/ReadWrite.c
> index 8f525044d1f1..6593e3aff79c 100644
> --- a/FatPkg/EnhancedFatDxe/ReadWrite.c
> +++ b/FatPkg/EnhancedFatDxe/ReadWrite.c
> @@ -580,7 +580,7 @@ FatWriteZeroPool (
>    if (AppendedSize > FAT_MAX_ALLOCATE_SIZE) {
>      //
>      // If the appended size is larger, maybe we can not allocate the whole
> -    // memory once. So if the growed size is larger than 10M, we just
> +    // memory once. So if the grown size is larger than 10M, we just
>      // allocate 10M memory (one healthy system should have 10M available
>      // memory), and then write the zerobuffer to the file several times.
>      //
> diff --git a/FatPkg/EnhancedFatDxe/Fat.h b/FatPkg/EnhancedFatDxe/Fat.h
> index 356cdbdb51af..e4aa8eac62c4 100644
> --- a/FatPkg/EnhancedFatDxe/Fat.h
> +++ b/FatPkg/EnhancedFatDxe/Fat.h
> @@ -867,7 +867,7 @@ FatCleanupVolume (
> 
>    @param  OFile                 - The open file.
> 
> -  @retval EFI_SUCCESS           - Shrinked successfully.
> +  @retval EFI_SUCCESS           - Shrunk successfully.
>    @retval EFI_VOLUME_CORRUPTED  - There are errors in the file's clusters.
> 
>  **/
> diff --git a/FatPkg/FatPkg.ci.yaml b/FatPkg/FatPkg.ci.yaml
> index fe95f481b50c..247028c22921 100644
> --- a/FatPkg/FatPkg.ci.yaml
> +++ b/FatPkg/FatPkg.ci.yaml
> @@ -51,15 +51,27 @@
>      },
>      "SpellCheck": {
>          "ExtendWords": [
> +            "bootable",
> +            "caseflag",
> +            "CDVOL",
> +            "checklink",
> +            "childlink",
> +            "clustersize",
> +            "controll",

This looks like one that should be fixed in the code and removed from this list

> +            "datacache",
> +            "dircachelink",
> +            "DMDEPKG",
>              "ELTORITO",
> +            "fatcache",
> +            "fatfilesystem",
> +            "fatname",
> +            "FDISKed",
> +            "FFFFFFFFL",
>              "FHAND",
>              "IFILE",
> -            "OFILE",
> -            "FDISKed",
>              "Lfnbuffer",
> -            "FFFFFFFFL",
> -            "CDVOL",
> -            "DMDEPKG"
> +            "OFILE",
> +            "zerobuffer"
>          ]
>      }
>  }
> --
> 2.28.0.windows.1
> 
> 
> 
> -=-=-=-=-=-=
> Groups.io Links: You receive all messages sent to this group.
> View/Reply Online (#97386): https://edk2.groups.io/g/devel/message/97386
> Mute This Topic: https://groups.io/mt/95678206/1643496
> Group Owner: devel+owner@edk2.groups.io
> Unsubscribe: https://edk2.groups.io/g/devel/unsub [michael.d.kinney@intel.com]
> -=-=-=-=-=-=
> 



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#97399): https://edk2.groups.io/g/devel/message/97399
Mute This Topic: https://groups.io/mt/95678206/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-