From af7971c4b50781024a45b766d744401edbb8487a Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 1 Jan 1970 00:00:00 +0000 Subject: [PATCH] Don't corrupt terminal if the first symbol contains non-ASCII chars. --- lib/virt_mem_ksyms.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))) -- 1.8.3.1