fix format specifiers for OLDPRINTFS build option.
This commit is contained in:
parent
3001856bca
commit
9a1d4f7670
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: ofw.c,v 1.68 2018/09/03 16:29:27 riastradh Exp $ */
|
/* $NetBSD: ofw.c,v 1.69 2023/12/10 23:19:12 andvar Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 1997
|
* Copyright 1997
|
||||||
|
@ -41,7 +41,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: ofw.c,v 1.68 2018/09/03 16:29:27 riastradh Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: ofw.c,v 1.69 2023/12/10 23:19:12 andvar Exp $");
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/systm.h>
|
#include <sys/systm.h>
|
||||||
|
@ -798,7 +798,7 @@ ofw_configmem(void)
|
||||||
for (totalcnt = 0, mp = OFphysmem; totalcnt < nOFphysmem;
|
for (totalcnt = 0, mp = OFphysmem; totalcnt < nOFphysmem;
|
||||||
totalcnt++, mp++) {
|
totalcnt++, mp++) {
|
||||||
#ifdef OLDPRINTFS
|
#ifdef OLDPRINTFS
|
||||||
printf("physmem: %x, %x\n", mp->start, mp->size);
|
printf("physmem: %lx, %lx\n", mp->start, mp->size);
|
||||||
#endif
|
#endif
|
||||||
physmem += btoc(mp->size);
|
physmem += btoc(mp->size);
|
||||||
}
|
}
|
||||||
|
@ -811,7 +811,7 @@ ofw_configmem(void)
|
||||||
for (availcnt = 0, mp = OFphysavail; availcnt < nOFphysavail;
|
for (availcnt = 0, mp = OFphysavail; availcnt < nOFphysavail;
|
||||||
availcnt++, mp++) {
|
availcnt++, mp++) {
|
||||||
#ifdef OLDPRINTFS
|
#ifdef OLDPRINTFS
|
||||||
printf("physavail: %x, %x\n", mp->start, mp->size);
|
printf("physavail: %lx, %lx\n", mp->start, mp->size);
|
||||||
#endif
|
#endif
|
||||||
free_pages += btoc(mp->size);
|
free_pages += btoc(mp->size);
|
||||||
}
|
}
|
||||||
|
@ -819,7 +819,7 @@ ofw_configmem(void)
|
||||||
mp--;
|
mp--;
|
||||||
physical_freeend = mp->start + mp->size;
|
physical_freeend = mp->start + mp->size;
|
||||||
#ifdef OLDPRINTFS
|
#ifdef OLDPRINTFS
|
||||||
printf("pmap_bootstrap: physmem = %x, free_pages = %x\n",
|
printf("pmap_bootstrap: physmem = %lx, free_pages = %x\n",
|
||||||
physmem, free_pages);
|
physmem, free_pages);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -1533,7 +1533,7 @@ ofw_getphysmeminfo(void)
|
||||||
|
|
||||||
#ifdef OLDPRINTFS
|
#ifdef OLDPRINTFS
|
||||||
for (mp = tmp; mp->size; mp++) {
|
for (mp = tmp; mp->size; mp++) {
|
||||||
printf("%x, %x\n", mp->start, mp->size);
|
printf("%lx, %lx\n", mp->start, mp->size);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue