[PATCH 1/6] kexec: Fix the -? option

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Add '?' to the short option string.  Fixes runtime errors like
these:

  kexec: invalid option -- '?'

Signed-off-by: Geoff Levand <geoff at infradead.org> for Huawei, Linaro
---
 kexec/kexec.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kexec/kexec.h b/kexec/kexec.h
index 715b568..2904e03 100644
--- a/kexec/kexec.h
+++ b/kexec/kexec.h
@@ -230,7 +230,7 @@ extern int file_types;
 	{ "reuseinitrd",	0, 0, OPT_REUSE_INITRD }, \
 	{ "debug",		0, 0, OPT_DEBUG }, \
 
-#define KEXEC_OPT_STR "hvdfxluet:p"
+#define KEXEC_OPT_STR "h?vdfxluet:p"
 
 extern void die(const char *fmt, ...)
 	__attribute__ ((format (printf, 1, 2)));
-- 
1.8.1.2





[Index of Archives]     [LM Sensors]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux