Fix a couple of printfs.

This commit is contained in:
phk 1995-11-14 09:52:25 +00:00
parent 8d3e9824b0
commit 8838e78de6
2 changed files with 6 additions and 6 deletions

View File

@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
* $Id: machdep.c,v 1.149 1995/11/10 09:53:50 phk Exp $
* $Id: machdep.c,v 1.150 1995/11/12 19:51:22 phk Exp $
*/
#include "npx.h"
@ -247,7 +247,7 @@ cpu_startup(dummy)
for (; phys_avail[indx + 1] != 0; indx += 2) {
int size = phys_avail[indx + 1] - phys_avail[indx];
printf("0x%08x - 0x%08x, %d bytes (%d pages)\n", phys_avail[indx],
printf("0x%08lx - 0x%08lx, %d bytes (%d pages)\n", phys_avail[indx],
phys_avail[indx + 1] - 1, size, size / PAGE_SIZE);
}
}
@ -426,7 +426,7 @@ cpu_startup(dummy)
if (bios_geom == 0x4f010f)
continue;
printf(" %x:%08x ", i, bios_geom);
printf(" %x:%08lx ", i, bios_geom);
max_cylinder = bios_geom >> 16;
max_head = (bios_geom >> 8) & 0xff;
max_sector = bios_geom & 0xff;

View File

@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
* $Id: machdep.c,v 1.149 1995/11/10 09:53:50 phk Exp $
* $Id: machdep.c,v 1.150 1995/11/12 19:51:22 phk Exp $
*/
#include "npx.h"
@ -247,7 +247,7 @@ cpu_startup(dummy)
for (; phys_avail[indx + 1] != 0; indx += 2) {
int size = phys_avail[indx + 1] - phys_avail[indx];
printf("0x%08x - 0x%08x, %d bytes (%d pages)\n", phys_avail[indx],
printf("0x%08lx - 0x%08lx, %d bytes (%d pages)\n", phys_avail[indx],
phys_avail[indx + 1] - 1, size, size / PAGE_SIZE);
}
}
@ -426,7 +426,7 @@ cpu_startup(dummy)
if (bios_geom == 0x4f010f)
continue;
printf(" %x:%08x ", i, bios_geom);
printf(" %x:%08lx ", i, bios_geom);
max_cylinder = bios_geom >> 16;
max_head = (bios_geom >> 8) & 0xff;
max_sector = bios_geom & 0xff;