summaryrefslogtreecommitdiff
path: root/kexec/arch/sh/kexec-sh.c
diff options
context:
space:
mode:
Diffstat (limited to 'kexec/arch/sh/kexec-sh.c')
-rw-r--r--kexec/arch/sh/kexec-sh.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/kexec/arch/sh/kexec-sh.c b/kexec/arch/sh/kexec-sh.c
index 7710fdf..ea56041 100644
--- a/kexec/arch/sh/kexec-sh.c
+++ b/kexec/arch/sh/kexec-sh.c
@@ -159,8 +159,7 @@ char *get_append(void)
FILE *fp;
int len;
if((fp = fopen("/proc/cmdline", "r")) == NULL){
- printf("/proc/cmdline file open error !!\n");
- exit(1);
+ die("/proc/cmdline file open error !!\n");
}
fgets(append_buf, 256, fp);
len = strlen(append_buf);