aboutsummaryrefslogtreecommitdiffstats
path: root/com32/elflink/ldlinux/kernel.c
diff options
context:
space:
mode:
authorMatt Fleming <matt.fleming@intel.com>2012-11-13 16:07:18 +0000
committerMatt Fleming <matt.fleming@intel.com>2012-11-13 18:14:55 +0000
commit348ae6af01350a9a46f3076a2facd27918f0f603 (patch)
tree159102a627d328bdaa9e1d9da0cc37d66f2cb01b /com32/elflink/ldlinux/kernel.c
parente5cc8304dc285156051b45ca5d0d03a02810afcd (diff)
downloadsyslinux-348ae6af01350a9a46f3076a2facd27918f0f603.tar.gz
syslinux-348ae6af01350a9a46f3076a2facd27918f0f603.tar.xz
syslinux-348ae6af01350a9a46f3076a2facd27918f0f603.zip
ldlinux: Delete dead code and useless printfsyslinux-5.00-pre10
Seeing the cmdline re-printed every time the user presses enter is very annoying, so delete the offending printf(). Also delete some code that has been commented out for ages. Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'com32/elflink/ldlinux/kernel.c')
-rw-r--r--com32/elflink/ldlinux/kernel.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/com32/elflink/ldlinux/kernel.c b/com32/elflink/ldlinux/kernel.c
index c4064345..1cfb6508 100644
--- a/com32/elflink/ldlinux/kernel.c
+++ b/com32/elflink/ldlinux/kernel.c
@@ -29,10 +29,6 @@ int new_linux_kernel(char *okernel, char *ocmdline)
cmdline = cmdline_buf;
temp = cmdline;
- /*
- strcpy(temp, "BOOT_IMAGE=");
- temp += 11;
- */
if (okernel)
kernel_name = okernel;
@@ -42,36 +38,12 @@ int new_linux_kernel(char *okernel, char *ocmdline)
strcpy(temp, kernel_name);
temp += strlen(kernel_name);
- /* in elflink branch, KernelCName no more exist */
- /*
- else {
- strcpy(temp, KernelCName);
- temp += strlen(KernelCName);
- kernel_name = KernelCName;
- }
- */
-
*temp = ' ';
temp++;
if (ocmdline)
strcpy(temp, ocmdline);
else if (append)
strcpy(temp, append);
- /*
- else if (*(char *)CmdOptPtr)
- strcpy(temp, (char *)CmdOptPtr);
- else if (AppendLen) {
- for (i = 0; i < AppendLen; i++)
- *temp++ = AppendBuf[i];
- *temp = '\0';
- }
- */
-
- printf("cmdline = %s\n", cmdline);
- /*
- printf("VkernelEnd = %x\n", VKernelEnd);
- printf("HighMemSize = %x\n", __com32.cs_memsize);
- */
/* "keeppxe" handling */
#if IS_PXELINUX