From 16aa04d663bddfb9f78d5bcdc1b2959bfb571649 Mon Sep 17 00:00:00 2001 From: kib Date: Thu, 19 Jul 2018 19:03:18 +0000 Subject: [PATCH] When reporting an error, print the errno value. Sponsored by: The FreeBSD Foundation MFC after: 3 days --- 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 d5422a15900c..6e6fe9df0225 100644 --- a/sys/kern/imgact_elf.c +++ b/sys/kern/imgact_elf.c @@ -861,7 +861,8 @@ __CONCAT(exec_, __elfN(imgact))(struct image_params *imgp) UIO_SYSSPACE, IO_NODELOCKED, td->td_ucred, NOCRED, NULL, td); if (error != 0) { - uprintf("i/o error PT_INTERP\n"); + uprintf("i/o error PT_INTERP %d\n", + error); goto ret; } interp_buf[interp_name_len] = '\0';