From: Richard W.M. Jones <"Richard W.M. Jones "> Date: Tue, 12 Aug 2008 10:11:24 +0000 (+0100) Subject: Don't corrupt terminal if the first symbol contains non-ASCII chars. X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=af7971c4b50781024a45b766d744401edbb8487a;p=virt-mem.git Don't corrupt terminal if the first symbol contains non-ASCII chars. --- diff --git a/lib/virt_mem_ksyms.ml b/lib/virt_mem_ksyms.ml index 4389983..0c4daf7 100644 --- a/lib/virt_mem_ksyms.ml +++ b/lib/virt_mem_ksyms.ml @@ -131,7 +131,7 @@ let find_kernel_symbols debug ({ mem = mem; domname = domname } as image) = List.iter ( fun (addr, size) -> eprintf "\t%Lx\t%Lx\t%!" addr size; - eprintf "first symbol: %s\n%!" + eprintf "first symbol: %S\n%!" (Virt_mem_mmap.get_string mem (Virt_mem_mmap.follow_pointer mem (Virt_mem_mmap.succ_long mem addr)))