From: Ben Gras Date: Sun, 10 Feb 2013 18:52:25 +0000 (+0100) Subject: libexec: quiet X-Git-Tag: v3.2.1~16 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/openssl_button.gif?a=commitdiff_plain;h=7df45744ad40082fff93c078433f7507a458e80d;p=minix.git libexec: quiet . harmless errors in the case of shell scripts Change-Id: I461776024a21233e291102ca6d05dc7fa767f71a --- diff --git a/lib/libexec/exec_elf.c b/lib/libexec/exec_elf.c index 4645ec638..625b3f087 100644 --- a/lib/libexec/exec_elf.c +++ b/lib/libexec/exec_elf.c @@ -60,12 +60,10 @@ static int elf_unpack(char *exec_hdr, { *hdr = (Elf_Ehdr *) exec_hdr; if(!elf_sane(*hdr)) { - printf("elf_unpack: elf_sane failed\n"); return ENOEXEC; } *phdr = (Elf_Phdr *)(exec_hdr + (*hdr)->e_phoff); if(!elf_ph_sane(*phdr)) { - printf("elf_unpack: elf_ph_sane failed\n"); return ENOEXEC; } #if 0 @@ -135,7 +133,6 @@ int libexec_load_elf(struct exec_info *execi) assert(execi->hdr != NULL); if((e=elf_unpack(execi->hdr, execi->hdr_len, &hdr, &phdr)) != OK) { - printf("libexec_load_elf: elf_unpack failed\n"); return e; }