X-Git-Url: http://git.annexia.org/?p=virt-mem.git;a=blobdiff_plain;f=lib%2Fvirt_mem_utsname.ml;h=6a725f5d4559cb228bdec5c260c95628ce463ee7;hp=33ee969cc304acd3b04996f19af7f0159d6ba1a9;hb=14c916e5692f6d1986a10b88d03b41349dcb729a;hpb=02eb2bb9cd33f08e542ed22175dcf8388cad5b79 diff --git a/lib/virt_mem_utsname.ml b/lib/virt_mem_utsname.ml index 33ee969..6a725f5 100644 --- a/lib/virt_mem_utsname.ml +++ b/lib/virt_mem_utsname.ml @@ -47,7 +47,7 @@ let parse_utsname bits = | { _ } -> None -let find_utsname debug ({ domname = name; mem = mem } as image, ksymmap) = +let find_utsname debug ({ domname = name; mem = mem } as image) ksymmap = let utsname = (* In Linux 2.6.25, the symbol is init_uts_ns. * http://lxr.linux.no/linux/init/version.c @@ -78,6 +78,8 @@ let find_utsname debug ({ domname = name; mem = mem } as image, ksymmap) = parse_utsname bits with Not_found -> - eprintf (f_"%s: could not find utsname in kernel image\n") name + eprintf (f_"%s: could not find utsname in kernel image\n") + name; + None in - (image, ksymmap, utsname) + image, utsname