[U-Boot] [PATCH] env: Fixup typos in callback

Joe Hershberger joe.hershberger at ni.com
Tue Dec 11 19:59:15 CET 2012


Use the same command guard on the help and make the help accurate.
Fix spelling in header.

Signed-off-by: Joe Hershberger <joe.hershberger at ni.com>
---
 common/cmd_nvedit.c    | 6 +++---
 include/env_callback.h | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/common/cmd_nvedit.c b/common/cmd_nvedit.c
index 3bfaa46..92d2048 100644
--- a/common/cmd_nvedit.c
+++ b/common/cmd_nvedit.c
@@ -1024,7 +1024,7 @@ static cmd_tbl_t cmd_env_sub[] = {
 	U_BOOT_CMD_MKENT(edit, 2, 0, do_env_edit, "", ""),
 #endif
 #if defined(CONFIG_CMD_ENV_CALLBACK)
-	U_BOOT_CMD_MKENT(callback, 1, 0, do_env_callback, "", ""),
+	U_BOOT_CMD_MKENT(callbacks, 1, 0, do_env_callback, "", ""),
 #endif
 #if defined(CONFIG_CMD_ENV_FLAGS)
 	U_BOOT_CMD_MKENT(flags, 1, 0, do_env_flags, "", ""),
@@ -1079,8 +1079,8 @@ static char env_help_text[] =
 #if defined(CONFIG_CMD_ASKENV)
 	"ask name [message] [size] - ask for environment variable\nenv "
 #endif
-#if defined(CONFIG_CMD_CALLBACKENV)
-	"callback [name] - print callbacks and their associated variables\nenv "
+#if defined(CONFIG_CMD_ENV_CALLBACK)
+	"callbacks - print callbacks and their associated variables\nenv "
 #endif
 	"default [-f] -a - [forcibly] reset default environment\n"
 	"env default [-f] var [...] - [forcibly] reset variable(s) to their default values\n"
diff --git a/include/env_callback.h b/include/env_callback.h
index 1d8bb0e..47fdc6f 100644
--- a/include/env_callback.h
+++ b/include/env_callback.h
@@ -43,7 +43,7 @@
 
 /*
  * This list of callback bindings is static, but may be overridden by defining
- * a new assogiation in the ".callbacks" environment variable.
+ * a new association in the ".callbacks" environment variable.
  */
 #define ENV_CALLBACK_LIST_STATIC ENV_CALLBACK_VAR ":callbacks," \
 	ENV_FLAGS_VAR ":flags," \
-- 
1.7.11.5



More information about the U-Boot mailing list