Unbreak kernel build by printing Maxmem using %ld instead of old (now changed)

%u
This commit is contained in:
Andrey A. Chernov 2002-08-30 06:13:39 +00:00
parent eb3025b3ed
commit 692821870b
4 changed files with 4 additions and 4 deletions

View File

@ -59,7 +59,7 @@ dumpsys(struct dumperinfo *di)
int i, mb;
int c;
printf("Dumping %u MB\n", Maxmem / (1024*1024 / PAGE_SIZE));
printf("Dumping %ld MB\n", Maxmem / (1024*1024 / PAGE_SIZE));
/* Fill in the kernel dump header */
strcpy(kdh.magic, KERNELDUMPMAGIC);

View File

@ -1472,7 +1472,7 @@ next_run: ;
if (atop(physmap[physmap_idx + 1]) != Maxmem &&
(boothowto & RB_VERBOSE))
printf("Physical memory use set to %uK\n", Maxmem * 4);
printf("Physical memory use set to %ldK\n", Maxmem * 4);
/*
* If Maxmem has been increased beyond what the system has detected,

View File

@ -59,7 +59,7 @@ dumpsys(struct dumperinfo *di)
int i, mb;
int c;
printf("Dumping %u MB\n", Maxmem / (1024*1024 / PAGE_SIZE));
printf("Dumping %ld MB\n", Maxmem / (1024*1024 / PAGE_SIZE));
/* Fill in the kernel dump header */
strcpy(kdh.magic, KERNELDUMPMAGIC);

View File

@ -1472,7 +1472,7 @@ next_run: ;
if (atop(physmap[physmap_idx + 1]) != Maxmem &&
(boothowto & RB_VERBOSE))
printf("Physical memory use set to %uK\n", Maxmem * 4);
printf("Physical memory use set to %ldK\n", Maxmem * 4);
/*
* If Maxmem has been increased beyond what the system has detected,