aboutsummaryrefslogtreecommitdiffstats
path: root/memdisk
diff options
context:
space:
mode:
authorGene Cumm <gene.cumm@gmail.com>2011-02-06 23:09:57 -0500
committerGene Cumm <gene.cumm@gmail.com>2011-02-06 23:09:57 -0500
commit4fb75f3467c0924e0ba9d471dd634e227d1d96d0 (patch)
treecd46e48a0f35079538bbf94bdd78d8afdc726266 /memdisk
parente10b3d5c70245484868d85a18c331e410d8b1a2d (diff)
downloadsyslinux-4fb75f3467c0924e0ba9d471dd634e227d1d96d0.tar.gz
syslinux-4fb75f3467c0924e0ba9d471dd634e227d1d96d0.tar.xz
syslinux-4fb75f3467c0924e0ba9d471dd634e227d1d96d0.zip
memdisk/setup: int15maxres: Use 1 const; comment out printf()
Diffstat (limited to 'memdisk')
-rw-r--r--memdisk/setup.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/memdisk/setup.c b/memdisk/setup.c
index 75e84756..9dad0942 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);
}
}
}