summaryrefslogtreecommitdiffstats
path: root/commands/printenv.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2008-04-04 11:46:55 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2008-04-04 14:45:04 +0200
commit50cc8c5412e804480a10ecdd9546c7b6ad21760e (patch)
tree86d3a04fd004996fc91839b9a7cad705090bcdc0 /commands/printenv.c
parenta9912f68c65850d2bed12111aabe8b779c95e365 (diff)
downloadbarebox-50cc8c5412e804480a10ecdd9546c7b6ad21760e.tar.gz
Subject: [PATCH] [general] Fixed constant strings in data section issue
For practical reasons I changed all string literals assumed to be constant to reside in .rodata subsection at end of .text section. Signed-off-by: Carsten Schlote <schlote@vahanus.net> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/printenv.c')
-rw-r--r--commands/printenv.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/commands/printenv.c b/commands/printenv.c
index 385596c..8766a12 100644
--- a/commands/printenv.c
+++ b/commands/printenv.c
@@ -65,14 +65,17 @@ static int do_printenv (cmd_tbl_t *cmdtp, int argc, char *argv[])
return 0;
}
+static const __maybe_unused char cmd_printenv_help[] =
+"\n - print values of all environment variables\n"
+"printenv name ...\n"
+" - print value of environment variable 'name'\n";
+
+
U_BOOT_CMD_START(printenv)
.maxargs = CONFIG_MAXARGS,
.cmd = do_printenv,
.usage = "print environment variables",
- U_BOOT_CMD_HELP(
- "\n - print values of all environment variables\n"
- "printenv name ...\n"
- " - print value of environment variable 'name'\n")
+ U_BOOT_CMD_HELP(cmd_printenv_help)
U_BOOT_CMD_END
/**