Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/uvm Make PGALLOC_VERBOSE compile where size_t != int.
details: https://anonhg.NetBSD.org/src/rev/96b002c23f82
branches: trunk
changeset: 544075:96b002c23f82
user: thorpej <thorpej%NetBSD.org@localhost>
date: Mon Mar 10 19:52:24 2003 +0000
description:
Make PGALLOC_VERBOSE compile where size_t != int.
diffstat:
sys/uvm/uvm_pglist.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diffs (38 lines):
diff -r 554a8ea04e9d -r 96b002c23f82 sys/uvm/uvm_pglist.c
--- a/sys/uvm/uvm_pglist.c Mon Mar 10 18:21:00 2003 +0000
+++ b/sys/uvm/uvm_pglist.c Mon Mar 10 19:52:24 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_pglist.c,v 1.25 2002/11/02 07:40:49 perry Exp $ */
+/* $NetBSD: uvm_pglist.c,v 1.26 2003/03/10 19:52:24 thorpej Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_pglist.c,v 1.25 2002/11/02 07:40:49 perry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_pglist.c,v 1.26 2003/03/10 19:52:24 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -150,7 +150,8 @@
int cidx;
#endif
#ifdef PGALLOC_VERBOSE
- printf("pgalloc: contig %d pgs from psi %d\n", num, ps - vm_physmem);
+ printf("pgalloc: contig %d pgs from psi %ld\n", num,
+ (long)(ps - vm_physmem));
#endif
try = roundup(max(atop(low), ps->avail_start), atop(alignment));
@@ -311,7 +312,8 @@
int cidx;
#endif
#ifdef PGALLOC_VERBOSE
- printf("pgalloc: simple %d pgs from psi %d\n", num, ps - vm_physmem);
+ printf("pgalloc: simple %d pgs from psi %ld\n", num,
+ (long)(ps - vm_physmem));
#endif
todo = num;
Home |
Main Index |
Thread Index |
Old Index