summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2015-12-29 16:09:15 +0000
committerkib <kib@FreeBSD.org>2015-12-29 16:09:15 +0000
commit8a5352a05efd1beaf7bfba09905615c8a8a7e5bf (patch)
treedd940fb54de9e55014474e6d1757794ee19b0d07
parent6a3209fa7085d7589c9a7ce26e2616583bb6d964 (diff)
downloadFreeBSD-src-8a5352a05efd1beaf7bfba09905615c8a8a7e5bf.zip
FreeBSD-src-8a5352a05efd1beaf7bfba09905615c8a8a7e5bf.tar.gz
MFC r292620:
Show the actual error code when interpreter cannot be loaded.
-rw-r--r--sys/kern/imgact_elf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/imgact_elf.c b/sys/kern/imgact_elf.c
index 520cc8b..eaa3ee1 100644
--- a/sys/kern/imgact_elf.c
+++ b/sys/kern/imgact_elf.c
@@ -993,7 +993,8 @@ __CONCAT(exec_, __elfN(imgact))(struct image_params *imgp)
}
vn_lock(imgp->vp, LK_EXCLUSIVE | LK_RETRY);
if (error != 0) {
- uprintf("ELF interpreter %s not found\n", interp);
+ uprintf("ELF interpreter %s not found, error %d\n",
+ interp, error);
goto ret;
}
} else
OpenPOWER on IntegriCloud