linux-cvs-patches
[Top] [All Lists]

CVS Update@linux-mips.org: arcboot

To: linux-cvs-patches@linux-mips.org
Subject: CVS Update@linux-mips.org: arcboot
From: ths@linux-mips.org
Date: Fri, 22 Apr 2005 16:56:09 +0100
Reply-to: linux-mips@linux-mips.org
Sender: linux-cvs-patches-bounce@linux-mips.org
CVSROOT:        /home/cvs
Module name:    arcboot
Changes by:     ths@ftp.linux-mips.org  05/04/22 16:56:04

Modified files:
        ext2load       : loader.c 

Log message:
        Use "Linux" as default for OSLoadFilename.

diff -urN arcboot/ext2load/loader.c arcboot/ext2load/loader.c
--- arcboot/ext2load/loader.c   2004/11/29 12:39:31     1.5
+++ arcboot/ext2load/loader.c   2005/04/22 15:56:03     1.6
@@ -472,10 +472,12 @@
            OSLoadFilename = argv[1];
        }
 
-       if (OSLoadPartition == NULL)
-               Fatal("Invalid load parition\n\r");
+       /* Fall back to "Linux" as default name. */
        if (OSLoadFilename == NULL)
-               Fatal("Invalid load filename\n\r");
+               OSLoadFilename = "Linux";
+
+       if (OSLoadPartition == NULL)
+               Fatal("Invalid load partition\n\r");
 #if DEBUG
        printf("OSLoadPartition: %s\n\r", OSLoadPartition);
        printf("OSLoadFilename: %s\n\r", OSLoadFilename);

<Prev in Thread] Current Thread [Next in Thread>
  • CVS Update@linux-mips.org: arcboot, ths <=