From: "Jan Beulich" Subject: [PATCH] only print pages' mfn-s in dump_pageframe_info() Date: Fri, 09 May 2008 11:26:56 +0100 Message-ID: <48244310.76E4.0078.0@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Printing page_to_maddr() and page_to_mfn() of the same page is redundant, and _p(page_to_maddr(page)) is even incorrect on x86/PAE. Signed-off-by: Jan Beulich Index: 2008-05-08/xen/arch/x86/domain.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- 2008-05-08.orig/xen/arch/x86/domain.c 2008-05-09 12:05:18.0000000= 00 +0200 +++ 2008-05-08/xen/arch/x86/domain.c 2008-05-09 12:06:53.000000000 = +0200 @@ -138,16 +138,16 @@ void dump_pageframe_info(struct domain * { list_for_each_entry ( page, &d->page_list, list ) { - printk(" DomPage %p: mfn=3D%p, caf=3D%08x, taf=3D%" = PRtype_info "\n", - _p(page_to_maddr(page)), _p(page_to_mfn(page)), + printk(" DomPage %p: caf=3D%08x, taf=3D%" PRtype_info = "\n", + _p(page_to_mfn(page)), page->count_info, page->u.inuse.type_info); } } =20 list_for_each_entry ( page, &d->xenpage_list, list ) { - printk(" XenPage %p: mfn=3D%p, caf=3D%08x, taf=3D%" PRtype_info= "\n", - _p(page_to_maddr(page)), _p(page_to_mfn(page)), + printk(" XenPage %p: caf=3D%08x, taf=3D%" PRtype_info "\n", + _p(page_to_mfn(page)), page->count_info, page->u.inuse.type_info); } }