Module Name: src Committed By: matt Date: Fri Jan 7 01:16:44 UTC 2011
Modified Files: src/sys/uvm [matt-nb5-pq3]: uvm_page.c Log Message: Improve panic message for non-power of 2 page size. To generate a diff of this commit: cvs rdiff -u -r1.140.6.3 -r1.140.6.3.8.1 src/sys/uvm/uvm_page.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/uvm/uvm_page.c diff -u src/sys/uvm/uvm_page.c:1.140.6.3 src/sys/uvm/uvm_page.c:1.140.6.3.8.1 --- src/sys/uvm/uvm_page.c:1.140.6.3 Mon Mar 2 20:51:35 2009 +++ src/sys/uvm/uvm_page.c Fri Jan 7 01:16:44 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: uvm_page.c,v 1.140.6.3 2009/03/02 20:51:35 snj Exp $ */ +/* $NetBSD: uvm_page.c,v 1.140.6.3.8.1 2011/01/07 01:16:44 matt Exp $ */ /* * Copyright (c) 1997 Charles D. Cranor and Washington University. @@ -71,7 +71,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: uvm_page.c,v 1.140.6.3 2009/03/02 20:51:35 snj Exp $"); +__KERNEL_RCSID(0, "$NetBSD: uvm_page.c,v 1.140.6.3.8.1 2011/01/07 01:16:44 matt Exp $"); #include "opt_uvmhist.h" #include "opt_readahead.h" @@ -503,7 +503,8 @@ } uvmexp.pagemask = uvmexp.pagesize - 1; if ((uvmexp.pagemask & uvmexp.pagesize) != 0) - panic("uvm_setpagesize: page size not a power of two"); + panic("uvm_setpagesize: page size %u (%#x) not a power of two", + uvmexp.pagesize, uvmexp.pagesize); for (uvmexp.pageshift = 0; ; uvmexp.pageshift++) if ((1 << uvmexp.pageshift) == uvmexp.pagesize) break;