summaryrefslogtreecommitdiff
path: root/kexec/crashdump.c
diff options
context:
space:
mode:
authorHorms <horms@verge.net.au>2006-11-17 16:41:33 +0900
committerSimon Horman <horms@verge.net.au>2006-11-20 10:40:18 +0900
commit93fa57c2b75b1bbfccf2e202c10e23a708c6c7e7 (patch)
tree013e2145ea5d31b001f5c0fdf9709d04a798e605 /kexec/crashdump.c
parent880d6f6a750defe4f8f8654bf4b078576b22f926 (diff)
kexec-tools: remove bogus stderr from die() call
I introduced a stray stderr argument to one of the die() calls in the patch to get_crash_notes_per_cpu() that I posted yesterday. This should fix that problem. Signed-Off-By: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'kexec/crashdump.c')
-rw-r--r--kexec/crashdump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kexec/crashdump.c b/kexec/crashdump.c
index 43326d2..e987b16 100644
--- a/kexec/crashdump.c
+++ b/kexec/crashdump.c
@@ -46,8 +46,8 @@ int get_crash_notes_per_cpu(int cpu, uint64_t *addr)
if (!fp) {
fopen_errno = errno;
if (fopen_errno != ENOENT)
- die(stderr, "Could not open \"%s\": %s\n",
- crash_notes, strerror(fopen_errno));
+ die("Could not open \"%s\": %s\n", crash_notes,
+ strerror(fopen_errno));
if (!stat("/sys/devices", &cpu_stat)) {
stat_errno = errno;
fprintf(stderr, "Could not open \"%s\": %s\n",