When looking up a symble using kvm_nlist(3), we need to prepend an
authorkettenis <kettenis@openbsd.org>
Sun, 11 Sep 2022 10:40:35 +0000 (10:40 +0000)
committerkettenis <kettenis@openbsd.org>
Sun, 11 Sep 2022 10:40:35 +0000 (10:40 +0000)
commitc3c82401f1ca742355f6d614ac731ead72a80852
treea534834b6449ecda99e13e0c2250e34038f3841e
parent9cfac7781ed1b6f9ebbb46135c12ced4a5dbfd47
When looking up a symble using kvm_nlist(3), we need to prepend an
underscore.  This fixes acpidump on arm64.  How this ever worked before
is unclear, but part of the puzzle is that we didn't properly check the
return value of the kvm_nlist(3) calls.  So fix that too.

ok deraadt@, mglocker@
usr.sbin/acpidump/acpidump.c