From ba2baa45ea06c916e0ec31e36a52097647671b04 Mon Sep 17 00:00:00 2001
From: Nobuhiro Iwamatsu <iwamatsu@debian.org>
Date: Mon, 20 Sep 2021 17:08:32 +0900
Subject: [PATCH] Fix typo

 - availabe -> available
 - boundries -> boundaries
 - missmatch -> mismatch

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@debian.org>
---
 mmc.c      | 4 ++--
 mmc_cmds.c | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/mmc.c b/mmc.c
index 315fa70..bb9f162 100644
--- a/mmc.c
+++ b/mmc.c
@@ -77,9 +77,9 @@ static struct Command commands[] = {
 	{ do_writeprotect_user_set, -4,
 	  "writeprotect user set", "<type>" "<start block>" "<blocks>" "<device>\n"
 #ifdef DANGEROUS_COMMANDS_ENABLED
-	  "Set the write protect configuration for the specified region\nof the user area for <device>.\n<type> must be \"none|temp|pwron|perm\".\n    \"none\"  - Clear temporary write protection.\n    \"temp\"  - Set temporary write protection.\n    \"pwron\" - Set write protection until the next poweron.\n    \"perm\"  - Set permanent write protection.\n<start block> specifies the first block of the protected area.\n<blocks> specifies the size of the protected area in blocks.\nNOTE! The area must start and end on Write Protect Group\nboundries, Use the \"writeprotect user get\" command to get the\nWrite Protect Group size.\nNOTE! \"perm\" is a one-time programmable (unreversible) change.",
+	  "Set the write protect configuration for the specified region\nof the user area for <device>.\n<type> must be \"none|temp|pwron|perm\".\n    \"none\"  - Clear temporary write protection.\n    \"temp\"  - Set temporary write protection.\n    \"pwron\" - Set write protection until the next poweron.\n    \"perm\"  - Set permanent write protection.\n<start block> specifies the first block of the protected area.\n<blocks> specifies the size of the protected area in blocks.\nNOTE! The area must start and end on Write Protect Group\nboundaries, Use the \"writeprotect user get\" command to get the\nWrite Protect Group size.\nNOTE! \"perm\" is a one-time programmable (unreversible) change.",
 #else
-	  "Set the write protect configuration for the specified region\nof the user area for <device>.\n<type> must be \"none|temp|pwron\".\n    \"none\"  - Clear temporary write protection.\n    \"temp\"  - Set temporary write protection.\n    \"pwron\" - Set write protection until the next poweron.\n<start block> specifies the first block of the protected area.\n<blocks> specifies the size of the protected area in blocks.\nNOTE! The area must start and end on Write Protect Group\nboundries, Use the \"writeprotect user get\" command to get the\nWrite Protect Group size.",
+	  "Set the write protect configuration for the specified region\nof the user area for <device>.\n<type> must be \"none|temp|pwron\".\n    \"none\"  - Clear temporary write protection.\n    \"temp\"  - Set temporary write protection.\n    \"pwron\" - Set write protection until the next poweron.\n<start block> specifies the first block of the protected area.\n<blocks> specifies the size of the protected area in blocks.\nNOTE! The area must start and end on Write Protect Group\nboundaries, Use the \"writeprotect user get\" command to get the\nWrite Protect Group size.",
 #endif /* DANGEROUS_COMMANDS_ENABLED */
 	},
 	{ do_writeprotect_user_get, -1,
diff --git a/mmc_cmds.c b/mmc_cmds.c
index 7994223..781a334 100644
--- a/mmc_cmds.c
+++ b/mmc_cmds.c
@@ -2474,7 +2474,7 @@ int do_rpmb_read_block(int nargs, char **argv)
 
 		/* Compare calculated MAC and MAC from last frame */
 		if (memcmp(mac, frame_out->key_mac, sizeof(mac))) {
-			printf("RPMB MAC missmatch\n");
+			printf("RPMB MAC mismatch\n");
 			exit(1);
 		}
 	}
@@ -2823,7 +2823,7 @@ static int do_cache_ctrl(int value, int nargs, char **argv)
 
 	if (ext_csd[EXT_CSD_REV] < EXT_CSD_REV_V4_5) {
 		fprintf(stderr,
-			"The CACHE option is only availabe on devices >= "
+			"The CACHE option is only available on devices >= "
 			"MMC 4.5 %s\n", device);
 		exit(1);
 	}
-- 
2.50.1

