From: Ben Gras Date: Sat, 8 May 2010 17:25:54 +0000 (+0000) Subject: vm: use arch_map2str to print pagefault info, to properly display code addrs X-Git-Tag: v3.1.7~73 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zpipe.c?a=commitdiff_plain;h=d5a0af826a796d6491c760f517320c6b92d6e1ce;p=minix.git vm: use arch_map2str to print pagefault info, to properly display code addrs --- diff --git a/servers/vm/pagefaults.c b/servers/vm/pagefaults.c index 6840a94d2..517dec2c8 100644 --- a/servers/vm/pagefaults.c +++ b/servers/vm/pagefaults.c @@ -72,8 +72,8 @@ PUBLIC void do_pagefaults(message *m) /* See if address is valid at all. */ if(!(region = map_lookup(vmp, addr))) { assert(PFERR_NOPAGE(err)); - printf("VM: pagefault: SIGSEGV %d bad addr 0x%lx %s\n", - ep, arch_map2vir(vmp, addr), pf_errstr(err)); + printf("VM: pagefault: SIGSEGV %d bad addr %s; %s\n", + ep, arch_map2str(vmp, addr), pf_errstr(err)); if((s=sys_kill(vmp->vm_endpoint, SIGSEGV)) != OK) panic("sys_kill failed: %d", s); if((s=sys_vmctl(ep, VMCTL_CLEAR_PAGEFAULT, r)) != OK)