summaryrefslogtreecommitdiff
path: root/kexec/crashdump.c
diff options
context:
space:
mode:
Diffstat (limited to 'kexec/crashdump.c')
-rw-r--r--kexec/crashdump.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/kexec/crashdump.c b/kexec/crashdump.c
index 8d88fdf..15c1105 100644
--- a/kexec/crashdump.c
+++ b/kexec/crashdump.c
@@ -84,7 +84,7 @@ int get_crash_notes_per_cpu(int cpu, uint64_t *addr, uint64_t *len)
if (fopen_errno != ENOENT)
die("Could not open \"%s\": %s\n", crash_notes,
strerror(fopen_errno));
- if (!stat("/sys/devices", &cpu_stat)) {
+ if (stat("/sys/devices", &cpu_stat)) {
stat_errno = errno;
if (stat_errno == ENOENT)
die("\"/sys/devices\" does not exist. "
@@ -157,8 +157,3 @@ int get_kernel_vmcoreinfo(uint64_t *addr, uint64_t *len)
{
return get_vmcoreinfo("/sys/kernel/vmcoreinfo", addr, len);
}
-
-int get_xen_vmcoreinfo(uint64_t *addr, uint64_t *len)
-{
- return get_vmcoreinfo("/sys/hypervisor/vmcoreinfo", addr, len);
-}