diff options
Diffstat (limited to 'kexec/arch/i386/kexec-beoboot-x86.c')
-rw-r--r-- | kexec/arch/i386/kexec-beoboot-x86.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/kexec/arch/i386/kexec-beoboot-x86.c b/kexec/arch/i386/kexec-beoboot-x86.c index 6d459ae..a65e094 100644 --- a/kexec/arch/i386/kexec-beoboot-x86.c +++ b/kexec/arch/i386/kexec-beoboot-x86.c @@ -64,8 +64,7 @@ int beoboot_probe(const char *buf, off_t len) void beoboot_usage(void) { - printf( "-d, --debug Enable debugging to help spot a failure.\n" - " --real-mode Use the kernels real mode entry point.\n" + printf( " --real-mode Use the kernels real mode entry point.\n" ); /* No parameters are parsed */ @@ -81,14 +80,13 @@ int beoboot_load(int argc, char **argv, const char *buf, off_t UNUSED(len), struct beoboot_header bb_header; const char *command_line, *kernel, *initrd; - int debug, real_mode_entry; + int real_mode_entry; int opt; int result; /* See options.h -- add any more there, too. */ static const struct option options[] = { KEXEC_ARCH_OPTIONS - { "debug", 0, 0, OPT_DEBUG }, { "real-mode", 0, 0, OPT_REAL_MODE }, { 0, 0, 0, 0 }, }; @@ -97,7 +95,6 @@ int beoboot_load(int argc, char **argv, const char *buf, off_t UNUSED(len), /* * Parse the command line arguments */ - debug = 0; real_mode_entry = 0; while((opt = getopt_long(argc, argv, short_options, options, 0)) != -1) { switch(opt) { @@ -109,9 +106,6 @@ int beoboot_load(int argc, char **argv, const char *buf, off_t UNUSED(len), case '?': usage(); return -1; - case OPT_DEBUG: - debug = 1; - break; case OPT_REAL_MODE: real_mode_entry = 1; break; @@ -134,7 +128,7 @@ int beoboot_load(int argc, char **argv, const char *buf, off_t UNUSED(len), kernel, bb_header.kernel_size, command_line, bb_header.cmdline_size, initrd, bb_header.initrd_size, - real_mode_entry, debug); + real_mode_entry); return result; } |