From ea6aa0dc3c856850c8a9c8c8e42cc5e8721daa55 Mon Sep 17 00:00:00 2001 From: simonb Date: Tue, 28 Mar 2000 02:53:18 +0000 Subject: [PATCH] Use the recent alpha solution to getting the printf() format right in mips_init_msgbuf(). --- sys/arch/mips/mips/mips_machdep.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sys/arch/mips/mips/mips_machdep.c b/sys/arch/mips/mips/mips_machdep.c index a614b93898e6..81a52563fb1c 100644 --- a/sys/arch/mips/mips/mips_machdep.c +++ b/sys/arch/mips/mips/mips_machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: mips_machdep.c,v 1.73 2000/03/28 00:52:57 simonb Exp $ */ +/* $NetBSD: mips_machdep.c,v 1.74 2000/03/28 02:53:18 simonb Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -52,7 +52,7 @@ #include /* RCS ID & Copyright macro defns */ -__KERNEL_RCSID(0, "$NetBSD: mips_machdep.c,v 1.73 2000/03/28 00:52:57 simonb Exp $"); +__KERNEL_RCSID(0, "$NetBSD: mips_machdep.c,v 1.74 2000/03/28 02:53:18 simonb Exp $"); #include "opt_compat_netbsd.h" #include "opt_compat_ultrix.h" @@ -1151,7 +1151,8 @@ dumpsys() void mips_init_msgbuf() { - size_t sz = round_page(MSGBUFSIZE); + vsize_t sz = (vsize_t)round_page(MSGBUFSIZE); + vsize_t reqsz = sz; struct vm_physseg *vps; vps = &vm_physmem[vm_nphysseg - 1]; @@ -1170,8 +1171,7 @@ mips_init_msgbuf() vm_nphysseg--; /* warn if the message buffer had to be shrunk */ - if (sz != round_page(MSGBUFSIZE)) + if (sz != reqsz) printf("WARNING: %ld bytes not available for msgbuf " - "in last cluster (%d used)\n", - round_page(MSGBUFSIZE), sz); + "in last cluster (%ld used)\n", reqsz, sz); }