Unbreak kernel build by printing Maxmem using %ld instead of old (now changed)
%u
This commit is contained in:
parent
eb3025b3ed
commit
692821870b
@ -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);
|
||||
|
@ -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,
|
||||
|
@ -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);
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user