When reporting an error, print the errno value.

Sponsored by:	The FreeBSD Foundation
MFC after:	3 days
This commit is contained in:
Konstantin Belousov 2018-07-19 19:03:18 +00:00
parent 2ae9055f49
commit 53e20b2702
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=336498

View File

@ -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';