[syslinux:master] memdisk/setup: int15maxres: Use 1 const; comment out printf()

syslinux-bot for Gene Cumm gene.cumm at gmail.com
Wed Mar 2 15:12:39 PST 2011


Commit-ID:  4fb75f3467c0924e0ba9d471dd634e227d1d96d0
Gitweb:     http://syslinux.zytor.com/commit/4fb75f3467c0924e0ba9d471dd634e227d1d96d0
Author:     Gene Cumm <gene.cumm at gmail.com>
AuthorDate: Sun, 6 Feb 2011 23:09:57 -0500
Committer:  Gene Cumm <gene.cumm at gmail.com>
CommitDate: Sun, 6 Feb 2011 23:09:57 -0500

memdisk/setup: int15maxres: Use 1 const; comment out printf()



---
 memdisk/setup.c |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/memdisk/setup.c b/memdisk/setup.c
index 75e8475..9dad094 100644
--- a/memdisk/setup.c
+++ b/memdisk/setup.c
@@ -725,16 +725,17 @@ void int15maxres(uint32_t restop)
 {
     uint32_t ramtop;
     struct e820range *ep;
+    const int int15restype = 2;
 
     ramtop = getramtop();
     for (ep = ranges; ep->type != -1U; ep++) {
 	if (ep->type == 1) {	/* Only if available */
 	    if (ep->start >= restop) {
-		printf("  %08x -> 2\n", ep->start);
-		ep->type = 2;
+		/* printf("  %08x -> 2\n", ep->start); */
+		ep->type = int15restype;
 	    } else if (ep[1].start > restop) {
-		printf("  +%08x =2; cut %08x\n", restop, ep->start);
-		insertrange(restop, (ep[1].start - restop), 2);
+		/* printf("  +%08x =2; cut %08x\n", restop, ep->start); */
+		insertrange(restop, (ep[1].start - restop), int15restype);
 	    }
 	}
     }



More information about the Syslinux-commits mailing list