about summary refs log tree commit diff stats
path: root/miasm/tools/emul_lib/libcodenat.c
diff options
context:
space:
mode:
authorserpilliere <devnull@localhost>2011-08-26 13:34:12 +0200
committerserpilliere <devnull@localhost>2011-08-26 13:34:12 +0200
commitbbd7e71ada55e23fe857a7c9954687ff987dec7c (patch)
tree5b8b21abab228129b8b2db1fab465185d27e4416 /miasm/tools/emul_lib/libcodenat.c
parent78bacd4d0dd014412a81ce8dc72ad3954bcd12e5 (diff)
downloadfocaccia-miasm-bbd7e71ada55e23fe857a7c9954687ff987dec7c.tar.gz
focaccia-miasm-bbd7e71ada55e23fe857a7c9954687ff987dec7c.zip
explicit error whil vm_get_mem fails
Diffstat (limited to 'miasm/tools/emul_lib/libcodenat.c')
-rw-r--r--miasm/tools/emul_lib/libcodenat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/miasm/tools/emul_lib/libcodenat.c b/miasm/tools/emul_lib/libcodenat.c
index 1ceb8712..97dedd7a 100644
--- a/miasm/tools/emul_lib/libcodenat.c
+++ b/miasm/tools/emul_lib/libcodenat.c
@@ -84,7 +84,7 @@ struct memory_page_node * get_memory_page_from_address(uint64_t ad)
 	if ( mpn && (mpn->ad <= ad) && (ad < mpn->ad + mpn->size))
 		return mpn;
 
-	printf("cannot find address!! %"PRIX64"\n", ad);
+	printf("ERROR: address 0x%"PRIX64" is not mapped in virtual memory:\n", ad);
 	dump_memory_page_pool();
 	dump_gpregs();
 	//exit(-1);
@@ -98,7 +98,7 @@ struct memory_page_node * get_memory_page_from_address(uint64_t ad)
 		if ((mpn->ad <= ad) && (ad < mpn->ad + mpn->size))
 			return mpn;
 	}
-	printf("cannot find address!! %X\n", ad);
+	printf("address %"PRIX64" is not mapped in virtual memory \n", ad);
 	dump_memory_page_pool();
 	dump_gpregs();
 	//exit(-1);