[PATCH] kexec: fix a minor mistake in an error message

Zhang Yanfei zhangyanfei.yes at gmail.com
Tue Mar 26 09:48:41 EDT 2013


From: Zhang Yanfei <zhangyanfei at cn.fujitsu.com>

when specified a wrong --entry option, it outputs the error message:
    "Bad option value in --load-jump-back-helper=%s\n"
which is obviously wrong, it should be:
    "Bad option value in --entry=%s\n"

Signed-off-by: Zhang Yanfei <zhangyanfei at cn.fujitsu.com>
---
 kexec/kexec.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kexec/kexec.c b/kexec/kexec.c
index f3928af..e6395f5 100644
--- a/kexec/kexec.c
+++ b/kexec/kexec.c
@@ -1121,7 +1121,7 @@ int main(int argc, char *argv[])
 			entry = (void *)strtoul(optarg, &endptr, 0);
 			if (*endptr) {
 				fprintf(stderr,
-					"Bad option value in --load-jump-back-helper=%s\n",
+					"Bad option value in --entry=%s\n",
 					optarg);
 				usage();
 				return 1;
-- 
1.7.1



More information about the kexec mailing list