From 8a5352a05efd1beaf7bfba09905615c8a8a7e5bf Mon Sep 17 00:00:00 2001 From: kib Date: Tue, 29 Dec 2015 16:09:15 +0000 Subject: [PATCH] MFC r292620: Show the actual error code when interpreter cannot be loaded. --- sys/kern/imgact_elf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/kern/imgact_elf.c b/sys/kern/imgact_elf.c index 520cc8b2a10e..eaa3ee1c93f2 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